RE: Writing in an I2C device

2023-10-03 Thread Gustavo Soares
Hi Alan!

 I enabled the PCF8575 driver on NuttX, I'll try to use it and get back to you 
if I need help.

Thank you!

De: Alan C. Assis 
Enviado: segunda-feira, 2 de outubro de 2023 11:44
Para: dev@nuttx.apache.org 
Assunto: Re: Writing in an I2C device

Hi Gustavo,

On 10/1/23, Gustavo Soares  wrote:
> Hello everyone!
>
> I have a PCF8575 IO expander with 16 channels wich I want to use 8 for write
> (P10 to P17). The hardware is already configures and all LED's connected to
> these ports are on. As you can see, NuttX sees the I2C device:
>
> [cid:ecafac4f-7e7e-4cb1-a090-ecdc0b0d942e]
>
> Also when I run the command to read it, it returns FF (255), meaning all
> LEDs are on:
>
> [cid:03315e20-c94f-4166-922a-7512f6f6fb63]
>
> For some reason the command to write into the i2c device seems not to work:
>
> [cid:39e062d1-caf0-4128-9874-a6c2792db4fd]
>
> *I tested the i2c device and the LEDs with a simple counter program using
> visuino (https://www.visuino.com/) and it worked.
> *For NuttX, I followed the steps of this
> video.
>
> Is the i2c set command correct? Should I apply any adicional config?
>

There is already a PCF8575 driver on NuttX.

I suggest you to try using that driver instead of play with the chip
from terminal.

Probably the error is because you are reading 1 byte by time, the chip
expects 16-bit reading.

BR,

Alan


Re: [OT] Link to YouTube NuttX Internacional Workshop

2023-10-03 Thread Tomek CEDRO
BIG THANK YOU FOLKS!!! :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: [OT] Link to YouTube NuttX Internacional Workshop

2023-10-03 Thread Alan C. Assis
Hi Everyone,

I want to say thanks for everybody that participated on this great
event, be in-person or online.

Special thanks to Alin Jerpelea, Tiago Medicci, Halysson Carvalho,
Lucas Zampar and Maria JĂșlia for working so hard to make that event
possible!

Also thank our great speakers:

Alin Jerpela
Camila Souza
Filipe Cavalcanti
Halysson Carvalho
Lup Yuen Lee
Masayuki Ishikawa
Matheus Castello
Niklas Hauser
Oliver Miranda
Prabhash Ragbir
Wang Bowen
Zhe Weng


If you couldn't attend the event for some reason, don't worry...

Everything is saved on YouTube (thanks Arie de Muijnck for marking all
video sections)

NuttX International Workshop Day 1:
https://www.youtube.com/watch?v=nDLplwggiX4

NuttX International Workshop Day 2:
https://www.youtube.com/watch?v=dTzOhl7_kz8

Best Regards,

Alan

On 9/29/23, Alan C. Assis  wrote:
> Please link the link below:
>
> https://www.youtube.com/watch?v=dTzOhl7_kz8
>
> Best Regards,
>
> Alan
>