Search found 57 matches

by scruss
Thu Apr 15, 2021 3:46 pm
Forum: General Discussion and Questions
Topic: Fade 1 image to show another.
Replies: 6
Views: 389

Re: GC9A01 display driver

OK, so the question is whether anyone has written a MicroPython driver for the GC9A01 display. There isn't one, but there is for CircuitPython. Tod Kurt (@todbot) suggested it's very similar to other displays, except it has a custom init code: https://github.com/tylercrumpton/CircuitPython_GC9A01/b...
by scruss
Wed Apr 14, 2021 12:54 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico fails to reboot after copying uf2
Replies: 1
Views: 155

Re: Pico fails to reboot after copying uf2

The Pico doesn't expose a drive like CircuitPython does. Use Thonny or rshell to access the filesystem
by scruss
Tue Apr 13, 2021 2:44 pm
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 10
Views: 288

Re: ESP8266 Bootloop after some seconds

can you tell us, please: what board you have: there are lots of NodeMCU variants, all slightly different. how much flash is on board. There's a script in the Arduino ESP8266 package which will work that out for you and display it in the terminal. what esptool.py command line you used, exactly: pleas...
by scruss
Sun Apr 11, 2021 2:42 am
Forum: ESP8266 boards
Topic: ValueError: syntax error in JSON
Replies: 2
Views: 200

Re: ValueError: syntax error in JSON

When I try that on MicroPython on Linux, config.json ends up containing:

Code: Select all

<settings object at 7faf2a7c5200>
Can you save classes in ujson objects?
by scruss
Sat Apr 10, 2021 6:19 pm
Forum: micro:bit boards
Topic: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?
Replies: 7
Views: 257

Re: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?

What do you mean they are noisy? potentiometer_noise.png That graph is a series of readings from a potentiometer sitting at its centre position, scaled to the same 0 … 1023 range that you are using. It's reading between 509 and 517, but the device isn't moving at all. It's just something analogue d...
by scruss
Fri Apr 09, 2021 1:20 pm
Forum: micro:bit boards
Topic: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?
Replies: 7
Views: 257

Re: Program that reads max. min. analog is raining. Micropython micro: bit How to optimize this code?

So, an analogue (potentiometer) joystick with the y-axis on pin0 and the x-axis on pin1? If I understand the micro:bit's MicroBitPin class right, you're going to get a full range of 0 – 1023 from a read_analog() call. Will you be using this one joystick, or are you writing code that could be used wi...
by scruss
Wed Apr 07, 2021 6:26 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 422

Re: ntptime not included with PyBoard firmware

I think the off-by-one in the day of the week field might be something to do with traditional RTCs being developed before Posix standards became universal in computers. Almost every RTC I've used has been modelled after the MC146818 from 1984: all BCD fields and two-digit years.
by scruss
Tue Apr 06, 2021 4:06 pm
Forum: Pyboard D-series
Topic: ntptime not included with PyBoard firmware
Replies: 11
Views: 422

Re: ntptime not included with PyBoard firmware

but it's always going to be a bit of a hack, since full Unix tz support requires more memory than we'll ever have available. Non-wifi MicroPython boards can get their RTC set from rshell and the host computer's time. The RTC might drift a bit, but it's usually good enough for data logging work. NTP ...
by scruss
Mon Apr 05, 2021 3:45 am
Forum: Other Boards
Topic: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc
Replies: 14
Views: 3387

Re: Wio Terminal with ATSAMD51 + Realtek RTL8720DN + 2.4 screen + etc

Thanks! Note that binutils-arm-none-eabif should be binutils-arm-none-eabi . I've got a Trinket lurking about somewhere, as well as a Xiao. Update : … success! ish … MicroPython v1.14-132-gd87f42b0e on 2021-04-04; Trinket M0 with SAMD21E18A >>> import machine >>> machine. __name__ bootloader freq me...
by scruss
Sat Apr 03, 2021 1:45 am
Forum: General Discussion and Questions
Topic: I am at a loss of how to get started??
Replies: 14
Views: 478

Re: I am at a loss of how to get started??

robert@mountain-cabin:~$ rshell -p /dev/ttyACM0 -f blinkpico.py That's attempting to execute MicroPython code on your local computer as rshell commands. Not really gonna work so well. One more question, How do I actually just upload the file straight into memory and execute? If you want something t...