Search found 5 matches

by nedla2004
Tue Apr 25, 2017 12:40 pm
Forum: MicroPython pyboard
Topic: PyBoard Cannot Factory Reset
Replies: 10
Views: 8116

PyBoard Cannot Factory Reset

My PyBoard looks like it is DFU mode, but does not appear when I connect it and does not show up with dfu-util. I did not try anything with this, just randomly the PyBoard had 3 LEDs on (which was definitely not from my program). How can I factory rest the board?
by nedla2004
Wed Sep 21, 2016 8:50 pm
Forum: MicroPython pyboard
Topic: OS Error 16
Replies: 4
Views: 7323

Re: OS Error 16

I am using the standard LCD, and just following the tutorial, which can be found here: http://docs.micropython.org/en/latest/p ... _skin.html.
by nedla2004
Wed Sep 21, 2016 12:52 am
Forum: MicroPython pyboard
Topic: OS Error 16
Replies: 4
Views: 7323

Re: OS Error 16

deshipu wrote:What does "i2c.scan()" say?
When I run

Code: Select all

i2c.scan
I get

Code: Select all

[90]
, but now,

Code: Select all

i2c.mem_write(4, 90, 0x5e)
works fine, and

Code: Select all

i2c.mem_read(1, 90, 0)[0]
gives me

Code: Select all

OSError: 116
Thanks for your help.
by nedla2004
Sun Sep 18, 2016 9:15 pm
Forum: MicroPython pyboard
Topic: OS Error 16
Replies: 4
Views: 7323

OS Error 16

When I run this code from the REPL:
>>> i2c = pyb.I2C(1, pyb.I2C.MASTER)
>>> i2c.mem_write(4, 90, 0x5e)
I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: 16
I am trying to use the LCD buttons, and I have the LCD in correctly. Any help is appreciated.
by nedla2004
Sun Sep 06, 2015 12:46 am
Forum: MicroPython pyboard
Topic: Mouse Click
Replies: 1
Views: 2992

Mouse Click

I recently got a PyBoard, and I am trying to use it as a mouse. I can make my cursor move, but I am trying to make it click when I press the button. Here is my code so far. main.py # main.py -- put your code here! import pyb import select switch = pyb.Switch() accel = pyb.Accel() while True: pyb.hid...