Search found 76 matches
- Mon Aug 16, 2021 8:01 am
- Forum: Drivers for External Components
- Topic: 8-bit parallel TFT driver for micropython ?
- Replies: 21
- Views: 102681
Re: 8-bit parallel TFT driver for micropython ?
Concerning circuitpython.displayio it is a .cpp module that is compiled with circuitpython so it can't be added as is in micropython. In my opinion, the fastest way to do it is accessing the registers of the microcontroler using machine.mem32. With mem32 you can read/write directly in the registers....
- Fri Aug 13, 2021 8:14 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Converting 24bits to 16bits color format error
- Replies: 4
- Views: 1776
Re: Converting 24bits to 16bits color format error
You can easily change the format.
1) you may need to change the masks depending on which color is coded over 5 or 6 bits
2) you then change the order of the parameters in the last operation to place the 3 colors at the right place
1) you may need to change the masks depending on which color is coded over 5 or 6 bits
2) you then change the order of the parameters in the last operation to place the 3 colors at the right place
- Fri Aug 13, 2021 11:42 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Converting 24bits to 16bits color format error
- Replies: 4
- Views: 1776
Re: Converting 24bits to 16bits color format error
Perhaps a less convoluted solution Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> r = 0xcf >>> g = 0x78 >>> b = 0xa3 >>> # mask the unused bits >>> nr = r & 0xf8 >>> ng = g & 0xfc >>> nb = b & 0xf8 >>> pri...
- Mon Aug 02, 2021 7:21 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Low frequency Signal generator for CTCSS
- Replies: 17
- Views: 8172
Re: Low frequency Signal generator for CTCSS
The frequency of the PWM has nothing to do with the one of the signal you want to synthesize. Apart than the frequency of the PWN shall be way higher than the one you synthesize. You should use DDS to create your signal. DDS stands for Direct Digital Synthesis. Say you have a large accumulator you c...
- Sun Aug 01, 2021 1:43 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no attribu
- Replies: 10
- Views: 5678
Re: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no att
Many possible solutions:
1) as Aivar suggested, switching to Thonny 3.3.11
2) taking on living with this error from time to time
3) taking a rest on sunday, so you 'll never encounter the problem
1) as Aivar suggested, switching to Thonny 3.3.11
2) taking on living with this error from time to time
3) taking a rest on sunday, so you 'll never encounter the problem
- Mon Jul 26, 2021 12:10 pm
- Forum: Hardware Projects
- Topic: MicroPython based:TPYBoard heart rate monitor
- Replies: 1
- Views: 43698
Re: MicroPython based:TPYBoard heart rate monitor
Interesting project but maybe you can add comment at the end of the display.draw_chinese() calls with a translation of the text so non chinese people can adapt the software to their need.
- Fri Jul 16, 2021 4:32 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Raspberry Pi Pico factory reset
- Replies: 4
- Views: 31992
Re: Raspberry Pi Pico factory reset
flash_nuke will erase all the flash. if the problem is only an "uncontrolled" main.py there is a less damaging solution. https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=305432 MicroPython_RenameMainDotPy only zap main.py and preserve the filesystem so if you already have any file saved on t...
- Sun Jul 11, 2021 4:31 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no attribu
- Replies: 10
- Views: 5678
Re: AttributeError: 'RTC' object has no attribute 'init' WARNING: Could not sync device's clock: 'RTC' object has no att
Thonny try synchronizing the RTC when it connects to the Pico. To do this it sends a short piece of code to the Pico, the problem is probably there.
Maybe @aivarannamaa can confirm.
Maybe @aivarannamaa can confirm.
- Thu Jun 17, 2021 12:51 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Play audio file in pi pico
- Replies: 6
- Views: 12935
Re: Play audio file in pi pico
Your are talking abour a speaker, maybe you can describe your configuration in more detail, it will be easier to help you
- Mon Jun 14, 2021 6:20 am
- Forum: Raspberry Pi microcontroller boards
- Topic: RPi pico machine.SPI periodic dropout.
- Replies: 19
- Views: 9274