Search found 76 matches

by fdufnews
Mon May 17, 2021 11:38 am
Forum: Drivers for External Components
Topic: Driver for SH1122 oled display
Replies: 5
Views: 5855

Re: Driver for SH1122 oled display

The test script has evolved since I took the photo.
Here's an uptodate one
by fdufnews
Sun May 16, 2021 8:14 am
Forum: Drivers for External Components
Topic: Driver for SH1122 oled display
Replies: 5
Views: 5855

Re: Driver for SH1122 oled display

I have created a repo on github to store some example code for the Pico
The driver for the SH1122 is in the drivers directory.
In the examples/sequence directory there are 2 short pieces of code that display animations using the SH1122. There is a short video in the horsejump subdirectory.
by fdufnews
Fri Apr 30, 2021 11:27 am
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 7519

Re: Error when importing custom python module

How do you copy your modules into the Pico?
by fdufnews
Mon Apr 26, 2021 7:41 am
Forum: Hardware Projects
Topic: is there universal board to test various common hardware module/sensor?
Replies: 2
Views: 16730

Re: is there universal board to test various common hardware module/sensor?

Well, a generic interface board is just a dream. If you search a little you'll see that there is no standard pinout for the graphic boards. I have in hand 2 Nokia 5110 display boards and their pinout are different. Concerning the sensors there are some de facto standards like Grove or click™ Board b...
by fdufnews
Thu Apr 08, 2021 5:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: machine.UART how to skip read?
Replies: 2
Views: 1632

Re: machine.UART how to skip read?

UART.any() will return how many bytes are waiting in the queue or 0 if nothing and it is non blocking
by fdufnews
Fri Apr 02, 2021 7:30 am
Forum: Raspberry Pi microcontroller boards
Topic: Not getting REPL after uploaded a library
Replies: 1
Views: 1470

Re: Not getting REPL after uploaded a library

You probably have a main.py that crashes the firmware. You should have a look here
by fdufnews
Mon Mar 29, 2021 7:19 am
Forum: Raspberry Pi microcontroller boards
Topic: PWM limited to 255
Replies: 3
Views: 2606

Re: PWM limited to 255

You can left shift the value in order to switch from 8 to 16 bits.
Say you have 0 ≤ value ≤ 255
if you make
value = value << 8
You will have 0 ≤ value ≤ 65280

Maybe you can elaborate on what your problem really is.
by fdufnews
Fri Mar 12, 2021 7:29 am
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 22
Views: 25174

Re: Cannot get access to /dev/ttyACM0

Are you sure Thonny is up to date? The release on the repo is 3.2.7, currently on thonny.org the release is 3.3.6.
Maybe you can load the last release at thonny.org
by fdufnews
Thu Mar 11, 2021 6:37 pm
Forum: Raspberry Pi microcontroller boards
Topic: main.py isn't running when Pico connected to external power
Replies: 8
Views: 13582

Re: main.py isn't running when Pico connected to external power

Can you post your main.py?
Are you sure, you are not missing any import or pin setting in your software?
by fdufnews
Wed Mar 10, 2021 9:37 am
Forum: Raspberry Pi microcontroller boards
Topic: LCD1602 error I2C
Replies: 10
Views: 15521

Re: LCD1602 error I2C

Default address on similar I2C adapter (using a PCF8574) is 0x27 (39 decimal) which is compliant with the address the scanner returned.