antiprism / libu8g2arm

Other
9 stars 5 forks source link

can't open device: No such file or directory #2

Closed bk3a12 closed 10 months ago

bk3a12 commented 10 months ago

Hi, I tried to your libu8g2arm library to compile example from yours using Nokia 5110 display on RP3b using HW SPI. Compilation succeeded but running compiled binary showed up error 'can't open device: No such file or directory' Aborted.

Using example from u8g2-arm-linux was running well.

Can you please help to take a look?

image

antiprism commented 10 months ago

Hi

From a visual review, it looks like you are passing a CS pin number rather than the CS number itself, hence accessing an SPI device that doesn't exist (/dev/spidev0.8). If you are using pin 8 then I believe the CS value is 0.

Adrian.

bk3a12 commented 10 months ago

Thanks for explanation. It is working now :)