You can set the rp2 rtc with rtc.datetime(). Use:
from machine import RTC
rtc.datetime((year, month, day, weekday, hour, minute, second, 0))
The two brackets are essential, and it has to be an 8 element tuple.
Search found 2715 matches
I am almost sure that the differences we see are related to the Python dynamic memory management. I ran another test which was provided a while ago by @pythoncoder, which just does arithmetic and a little bit of looping. There, the numbers are consistent over all versions. That matches my observatio...
Generally i do the same: git checkout <hash-value> make clean make BOARD=TEENSY40 -j5 deploy The code size is reported at the end of the build. It is a table like this: Memory region Used Size Region Size %age Used m_flash_config: 512 B 4 KB 12.50% m_ivt: 48 B 4 KB 1.17% m_interrupts: 1 KB 1 KB 100....
- Wed Jun 23, 2021 6:17 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Size of multiple PIO state machines
- Replies: 3
- Views: 234
There are two PIO bloxks. The first four and the second four state machine each share the same 32 word area of these two PIOs. So one optimization would be to put the state machines in the different groups. Unloading a single state machine from the 32 Word area is tricky. What could be achieved is r...
- Wed Jun 23, 2021 6:11 am
- Forum: ESP32 boards
- Topic: SPI is not working with Infineon current sensor TLI4970
- Replies: 1
- Views: 197
Usually the CS active state is a low level. p5.on() sets p5 to a high level. So better use p5.value(0) or p5(0) to set it to a low level, and p5.value(1) or p5(1) for a high level.
@RobH The speed drop comes with commit bbdc98f72, from version 1.15-182 to v1.15-183, causing the pystone numbers to drop from ~5500 to 2300. But that commit "just" add most of the Python features. Nothing that is really needed for the pystone test. It increases the code size quite a bit from 195552...
The timing should be fine. In my tests it said it lasted 2.1 seconds, and that matches the observation. At a figure of 4200 it was 1.1 second, and that's a noticeably difference. I was considering whether the fast speed was a lucky memory layout which makes best use of the cache. The difference betw...