Search found 76 matches

by fdufnews
Fri Jun 11, 2021 12:42 pm
Forum: Raspberry Pi microcontroller boards
Topic: Make a counter
Replies: 4
Views: 2411

Re: Make a counter

You'd better try

Code: Select all

counter = [Off, Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine]
counter[1]()
by fdufnews
Tue Jun 08, 2021 8:47 am
Forum: Raspberry Pi microcontroller boards
Topic: connect 5v to ADC_VREF
Replies: 1
Views: 1462

Re: connect 5v to ADC_VREF

No!!!
No signal on any IO shall be higher than the power supply of the processor, so stay under 3.3V.
If you need to convert signals their voltage are higher than 3.3V you shall use a voltage divider on those signals to reduce their voltage span to the 0 - 3.3v range
by fdufnews
Tue Jun 01, 2021 1:01 pm
Forum: Drivers for External Components
Topic: Driver for ST7735 (blue tab)
Replies: 2
Views: 2976

Re: Driver for ST7735 (blue tab)

Thank you.

When I adapt a driver, I try to keep the interface as much as possible to assure compatibility with the original one.
by fdufnews
Tue Jun 01, 2021 6:47 am
Forum: Drivers for External Components
Topic: Driver for ST7735 (blue tab)
Replies: 2
Views: 2976

Driver for ST7735 (blue tab)

Just made some modification on a driver from @pythoncoder to use the blue tab variation of a 80 x 160 display using ST7735 driver chip. The driver is here in the drivers directory. The differences with the original driver are : an offset on one axis inverted colors I have added parameters in the con...
by fdufnews
Tue May 25, 2021 6:39 am
Forum: Raspberry Pi microcontroller boards
Topic: Multiple ByteArrays for Pico OLED Displays
Replies: 10
Views: 6377

Re: Multiple ByteArrays for Pico OLED Displays

Oupsss
Thanks corrected
by fdufnews
Mon May 24, 2021 7:44 am
Forum: Raspberry Pi microcontroller boards
Topic: Problem with UART reading (MH-Z19B sensor)
Replies: 13
Views: 8567

Re: Problem with UART reading (MH-Z19B sensor)

Is this garbage only occuring during the first exchange or for every other ones? If it is only on the first one, it is surely a problem linked to the setup of the sensor. In that case, maybe you can add a few seconds delay before entering the flush loop I suggested. The delay shall be longer than th...
by fdufnews
Sun May 23, 2021 5:45 pm
Forum: Raspberry Pi microcontroller boards
Topic: Multiple ByteArrays for Pico OLED Displays
Replies: 10
Views: 6377

Re: Multiple ByteArrays for Pico OLED Displays

Considering your need, I think it will be easier to use a tuple myCar = (myNumber0, myNumber1, myNumber2, myNumber3, myNumber4, ..... , myNumber9, , Point, DecCee) You can then access the shape of the number using its value as an index in myCar. buffer = bytearray(myCar[0]) # will display 0 fb = fra...
by fdufnews
Sun May 23, 2021 1:49 pm
Forum: Raspberry Pi microcontroller boards
Topic: Problem with UART reading (MH-Z19B sensor)
Replies: 13
Views: 8567

Re: Problem with UART reading (MH-Z19B sensor)

Well, that not a secure way of coding. It is always possible that there is garbage sent on the line while the sensor is initializing itself. Maybe you can add a short piece of code in order to flush the RX buffer before talking to your sensor. Insert this before entering your infinite loop while (se...
by fdufnews
Sun May 23, 2021 11:52 am
Forum: Raspberry Pi microcontroller boards
Topic: Multiple ByteArrays for Pico OLED Displays
Replies: 10
Views: 6377

Re: Multiple ByteArrays for Pico OLED Displays

Hello, Maybe you can find interresting things following this link I convert images to bytearrays and then the imagexx.py and the script animhorse.py are downloaded into the Pico. The animhorse.py script imports the images and creates an array of images that are displayed one after the other. There i...
by fdufnews
Wed May 19, 2021 7:14 am
Forum: Drivers for External Components
Topic: Driver for SH1122 oled display
Replies: 5
Views: 6078

Re: Driver for SH1122 oled display

It's a pretty good display. I just warn you that displaying static images for a long time leaves marks.