Search found 166 matches

by rhubarbdog
Fri Apr 19, 2019 2:41 am
Forum: MicroPython pyboard
Topic: code in internal flash and mounting sd card as usb mass storage
Replies: 8
Views: 2223

Re: code in internal flash and mounting sd card as usb mass storage

Have you considered that the file system that mounts when you plug the pyboard in isn't the filesystem that exists on the pyboard after your program has run. consider the following program import pyb pyb.LED(4).on() exist = True try: with open('output.txt') as _: pass except: exist = False pyb.delay...
by rhubarbdog
Thu Apr 18, 2019 2:15 pm
Forum: MicroPython pyboard
Topic: code in internal flash and mounting sd card as usb mass storage
Replies: 8
Views: 2223

Re: code in internal flash and mounting sd card as usb mass storage

remove the SKIPSD file from your flash
add a boot.py to the SD Card with the lines

Code: Select all

import pyb
pyb.main('/flash/main.py') 
This will automatically mount the SD Card but execute main.py from flash
by rhubarbdog
Thu Apr 18, 2019 8:19 am
Forum: Pyboard D-series
Topic: Stuck with green LED on constantly?
Replies: 5
Views: 1207

Re: Stuck with green LED on constantly?

Try holding down the USR switch and reset. Release reset. Release USR when the light is blue to do a factory reset of your flash.
by rhubarbdog
Wed Apr 17, 2019 8:03 am
Forum: MicroPython pyboard
Topic: why do my numbers not skip
Replies: 6
Views: 1281

Re: why do my numbers not skip

If an interrupt occurs while the previous callback is executing, a further instance of the callback will be queued for execution; this will run after the current instance has completed. A sustained high interrupt repetition rate therefore carries a risk of unconstrained queue growth and eventual fa...
by rhubarbdog
Wed Apr 17, 2019 7:08 am
Forum: MicroPython pyboard
Topic: why do my numbers not skip
Replies: 6
Views: 1281

Re: why do my numbers not skip

Yes i know to keep isr short and fast. I just used pyb.delay to emulate work and used long times to make it watchable. I will read that link thanks.
by rhubarbdog
Tue Apr 16, 2019 4:56 pm
Forum: MicroPython pyboard
Topic: Will 3.6 volts fry my pyboard
Replies: 2
Views: 683

Will 3.6 volts fry my pyboard

I have a chip i plan to use in my project. It's a 5 volt device but inputs react as documented to voltages as low as 2 volt. The possible problem is the output pins appear to output 3.6volt. Will that damage my pyboard.
by rhubarbdog
Tue Apr 16, 2019 2:39 am
Forum: MicroPython pyboard
Topic: I can't access microSD cards with Pyboard 1.1
Replies: 18
Views: 3972

Re: I can't access microSD cards with Pyboard 1.1

Using a card reader not the pyboard 1) delete all partitions 2) create a single partition I'd use sudo cfdisk /dev/sdb1 3) create a fat filesystem with sudo mkfs.fat /dev/sdb1 Use lsblk to detetmine the name to use if it's not /dev/sdb1 [EDIT] Micropython will only work with an SD Card with 1 partit...
by rhubarbdog
Sun Apr 14, 2019 1:06 pm
Forum: MicroPython pyboard
Topic: why do my numbers not skip
Replies: 6
Views: 1281

why do my numbers not skip

I have the following program using a timer and callback import pyb import micropython timer = pyb.Timer(1, freq = 1) count = 0 def print_(parm): print(parm) def count_cb(tim): global count count += 1 def timer_cb(tim): global count tim.callback(count_cb) micropython.schedule(print_, count) if count ...
by rhubarbdog
Sun Apr 14, 2019 8:27 am
Forum: MicroPython pyboard
Topic: Strange behavior with Pyboard and ssd1306 display over I2C
Replies: 4
Views: 1254

Re: Strange behavior with Pyboard and ssd1306 display over I2C

Hi I have an ssd1306 128x32 screen and all the programs you have given work. I have added the missing line from snippet 1 `return display` are you using this ssd1306.py I downloaded it ages ago from another repo but it appears to have been accepted into the micropython repo. This is the version i ha...
by rhubarbdog
Sun Apr 07, 2019 8:08 am
Forum: MicroPython pyboard
Topic: PyB-to-PyB using I2C?
Replies: 24
Views: 9870

Re: PyB-to-PyB using I2C?

I think @pythoncoder created an i2c to i2c comms with uasyncio and an extra wire to wake each other up. It looked interesting but i didn't have multiple devices at the time to test it. Search his repositories on github