Search found 1518 matches

by Roberthh
Fri Aug 16, 2019 2:16 pm
Forum: Drivers for External Components
Topic: TM1638 - 8x 7-segment LED modules with 8x buttons
Replies: 14
Views: 1574

Re: TM1638 - 8x 7-segment LED modules with 8x buttons

The TM1638 module seems to require 5V, and will draw quite a lot of current when the LED's lite up. The 3.3V regulator of the Wemos will not drive that. So better connect to 5V. Since all other connections to the TM1638 are ESP8266 output to TM1638 input, there should not be a fatal problem with the...
by Roberthh
Fri Aug 16, 2019 1:01 pm
Forum: Drivers for External Components
Topic: TM1638 - 8x 7-segment LED modules with 8x buttons
Replies: 14
Views: 1574

Re: TM1638 - 8x 7-segment LED modules with 8x buttons

How do you connect the TM1638 board?
by Roberthh
Thu Aug 15, 2019 7:53 pm
Forum: Hardware Projects
Topic: Errors when trying to build
Replies: 4
Views: 115

Re: Errors when trying to build

Did you run:

git submodule update --init

after cloning?
by Roberthh
Thu Aug 15, 2019 6:35 pm
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 11
Views: 273

Re: Freezing modules having native and viper functions

I just picked a file from the tests directory, because they are small. I used tests/micropython/native_misc.py. In the tests/perf_bench there are a few viper & native files, like viper_call2b.py, which use both native and viper code. So you reckon the issue is with Viper? The test I made failed with...
by Roberthh
Thu Aug 15, 2019 6:29 pm
Forum: General Discussion and Questions
Topic: Build Errors lwip
Replies: 2
Views: 69

Re: Build Errors lwip

Which port are you using? STM32 or ESP32?
by Roberthh
Thu Aug 15, 2019 4:57 pm
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 11
Views: 273

Re: Freezing modules having native and viper functions

Some things to try though: does it work as an .mpy on the filesystem, rather than freezing?
@jimmo: mpy files with native code work fine.
by Roberthh
Thu Aug 15, 2019 12:07 pm
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 11
Views: 273

Re: Freezing modules having native and viper functions

Same here, both for PYBD and PYBV11. The -march flag is properly set.
by Roberthh
Wed Aug 14, 2019 5:59 am
Forum: General Discussion and Questions
Topic: Odd Python parsing?
Replies: 5
Views: 133

Re: Odd Python parsing?

Peter, why should that be bizarre. In your example, print has two parameters: (1, 2) if bar else 3 4 So it will print, depending on bar, (1, 2) or 3, and it will always print 4. So this is more an example on how ternary expression can create hard-to-read code. Although, I like to use them, but most ...
by Roberthh
Tue Aug 13, 2019 7:14 pm
Forum: ESP8266 boards
Topic: Readproof Code
Replies: 2
Views: 131

Re: Readproof Code

As a simple measure you can use frozen bytecode, which embeds compiled code into flash. Then there is no python code in the file system except maybe main.py or boot.py. But even the code there can be compiled into flash, or put into _boot.py, which anyhow resides in the flash memory. Still, people c...
by Roberthh
Tue Aug 13, 2019 4:13 pm
Forum: ESP32 boards
Topic: Trouble connecting to SPI display sh1106
Replies: 9
Views: 264

Re: Trouble connecting to SPI display sh1106

The data sheet of the SH1106 talks a minimum clock cycle of 250 ns. That's a 4 MHz clock. In a ESP8266 script I used 10 MHz. But the final clock rate was lower. The hardware SPI should make a more precise clock, so better do not use values beyond 4 MHz. In the samples of my driver I use 1 MHz. P.S.:...