Search found 168 matches
- Tue Apr 23, 2019 6:05 am
- Forum: Pyboard D-series
- Topic: Stuck with green LED on constantly?
- Replies: 5
- Views: 4097
- Fri Apr 19, 2019 3:25 am
- Forum: Pyboard D-series
- Topic: Stuck with green LED on constantly?
- Replies: 5
- Views: 4097
Re: Stuck with green LED on constantly?
I read it in this thread
[Edit]
Have you tried from a serial terminal to get a REPL prompt and type
[Edit]
Have you tried from a serial terminal to get a REPL prompt and type
Code: Select all
import pyb
pyb.LED(2).off()
- 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: 6948
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...
- 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: 6948
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
This will automatically mount the SD Card but execute main.py from flash
add a boot.py to the SD Card with the lines
Code: Select all
import pyb
pyb.main('/flash/main.py')
- Thu Apr 18, 2019 8:19 am
- Forum: Pyboard D-series
- Topic: Stuck with green LED on constantly?
- Replies: 5
- Views: 4097
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.
- Wed Apr 17, 2019 8:03 am
- Forum: MicroPython pyboard
- Topic: why do my numbers not skip
- Replies: 6
- Views: 4688
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...
- Wed Apr 17, 2019 7:08 am
- Forum: MicroPython pyboard
- Topic: why do my numbers not skip
- Replies: 6
- Views: 4688
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.
- Tue Apr 16, 2019 4:56 pm
- Forum: MicroPython pyboard
- Topic: Will 3.6 volts fry my pyboard
- Replies: 2
- Views: 2219
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.
- Tue Apr 16, 2019 2:39 am
- Forum: MicroPython pyboard
- Topic: I can't access microSD cards with Pyboard 1.1
- Replies: 28
- Views: 61043
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...
- Sun Apr 14, 2019 1:06 pm
- Forum: MicroPython pyboard
- Topic: why do my numbers not skip
- Replies: 6
- Views: 4688
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 ...