I've got the same error, although I use a Pyboard v 1.1, and it should have one :
https://store.micropython.org/product/PYBv1.1H
Any idea whats wrong? Does it needs to be switched on first or something similar?
Search found 15 matches
- Wed Sep 16, 2020 12:35 pm
- Forum: General Discussion and Questions
- Topic: OSError: accelerometer not found
- Replies: 7
- Views: 6217
- Fri Sep 11, 2020 4:48 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] Prevent powerbank to go into standby mode
- Replies: 4
- Views: 3157
Re: Prevent powerbank to go into standby mode
Hi pythoncoder,
your solution worked! Thank you very much.
First I tried with 100Ohm, but it didn't work. Then I tried with 50Ohm (5x10Ohm), and this worked!
I will buy a ~50Ohm resistor asap and try again.
your solution worked! Thank you very much.
First I tried with 100Ohm, but it didn't work. Then I tried with 50Ohm (5x10Ohm), and this worked!
I will buy a ~50Ohm resistor asap and try again.
- Fri Sep 11, 2020 12:24 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] Prevent powerbank to go into standby mode
- Replies: 4
- Views: 3157
[SOLVED] Prevent powerbank to go into standby mode
Hi Everybody! I have a simple question concerning the pyboard. I want to use it with an external powerbank. It works fine, but the pyboard is just too efficient :mrgreen: and not drawing enough power, so the powerbank thinks it is not used and goes into standby mode after 30 sec (and switch off the ...
- Thu Sep 03, 2020 3:10 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] Custom (external) Button
- Replies: 7
- Views: 3219
Re: Custom (external) Button
I found a solution. Maybe not the best, but it works:
and later, I reset btn_reset = 0 in the main loop:
Code: Select all
btn_reset = 0
def pin_switchup(pin):
global btn_reset
if btn_reset == 0:
btn_reset = 1
switchup()
Code: Select all
while True:
btn_reset = 0
... (functions and time sleeps)
- Thu Sep 03, 2020 1:31 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] Custom (external) Button
- Replies: 7
- Views: 3219
Re: Custom (external) Button
Hi jimmo,
yes it works!! thank you very much.
but now I get the following problem: on each press, the pin_switchup(pin) function is called many times.. I would like to call it only one. Is there a simple trick to do this?
Thanks in advance,
vince
yes it works!! thank you very much.
but now I get the following problem: on each press, the pin_switchup(pin) function is called many times.. I would like to call it only one. Is there a simple trick to do this?
Thanks in advance,
vince
- Thu Sep 03, 2020 11:01 am
- Forum: MicroPython pyboard
- Topic: [SOLVED] Custom (external) Button
- Replies: 7
- Views: 3219
Re: Custom (external) Button
Hello, thank you very much. Unfortunately I get now the following error: TypeError: function takes 0 positional arguments but 1 were given .. I I still don't know how to do it. I think I miss something... and I don't find any proper tutorial/example to figure it out by myself. Could you give me a ha...
- Wed Sep 02, 2020 3:45 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] Custom (external) Button
- Replies: 7
- Views: 3219
Re: Custom (external) Button
Hi Roberthh, thank you very much for the hint! I read the doc, but I don't really get it how to implement it? Here is what I did, bit somehow it doesn't work (I want to trigger the function switchup()) sw_up = Pin('Y12', Pin.IN, Pin.PULL_UP) sw_up.irq(handler=switchup(), trigger=Pin.IRQ_RISING) Or d...
- Wed Sep 02, 2020 1:30 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] Custom (external) Button
- Replies: 7
- Views: 3219
[SOLVED] Custom (external) Button
Hello everybody! NEWBIE question: I want to set up an external button. I should behave exactly like the USR button (I would like to trigger a function when the button is pressed). Here is the code I use to with the USR button: sw = pyb.Switch() sw.callback(switchup) If I try to copy this code to my ...
- Mon Aug 31, 2020 12:46 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] can't connect to REPL
- Replies: 14
- Views: 8276
Re: can't connect to REPL
[SOLVED!] Now I found the solution... 1. unplug the pyboard 2. type: ls /dev/ttyACM* 3. plug the pyboard 4. type: ls /dev/ttyACM* 5. figure out the new device, this is the pyboard (in my case: /dev/ttyACM3) 6. then, use this new device address to connect! sudo picocom /dev/ttyACM3 For some reasons :...
- Thu Aug 27, 2020 3:44 pm
- Forum: MicroPython pyboard
- Topic: [SOLVED] can't connect to REPL
- Replies: 14
- Views: 8276
Re: can't connect to REPL
Well, with sudo I don't get the error message, but I can't access to the REPL neither...
And I am in the dialout group.
How can I figure out which process is using the device, and how to stop it?
Thanks in advance,
Vince
And I am in the dialout group.
How can I figure out which process is using the device, and how to stop it?
Thanks in advance,
Vince