Search found 27 matches
- Tue Mar 23, 2021 2:09 pm
- Forum: MicroPython pyboard
- Topic: Battery and servo and USB
- Replies: 5
- Views: 4172
Re: Battery and servo and USB
Hi OutoftheBOTS, Documentation on the PYB is here . You'll likely find everything you need there and if you intend to do some development it would be good to be familiar with the specs. I don't have a PYBoard so I can only speak in general terms. With every other board I've used, driving devices lik...
- Tue Mar 23, 2021 1:49 pm
- Forum: Programs, Libraries and Tools
- Topic: Autorun my main file
- Replies: 5
- Views: 2701
Re: Autorun my main file
Hi PedroJuan. I try to call my main file in my boot file but that never works... You don't need to call main.py. That will be done for you once boot.py finishes. boot.py: runs when the device starts and sets up several configuration options; main.py: this is the main script that contains your code. ...
- Tue Mar 23, 2021 1:40 pm
- Forum: ESP32 boards
- Topic: turning on and off ESPHOME Sonoff
- Replies: 2
- Views: 1799
Re: turning on and off ESPHOME Sonoff
Hi ajocius, I have flashed ESPhome to sonoff device Did you use a guide to do this? A link to it might help as there are several different ways to go about this and it makes a difference to access your modified Sonoff. What kind of solution can I make ? Any of your solutions are possible. NodeRed is...
- Mon Mar 22, 2021 10:05 pm
- Forum: General Discussion and Questions
- Topic: Memory Allocation
- Replies: 0
- Views: 1029
Memory Allocation
Hi everyone! Been reading about memory optimizations here . I'm trying to apply them to two pieces of code to wrap around them, and prevent some SegFaults. Refactoring the code has resolved the great majority of issues but occasionally another crops up. I'm certain this is due to Memory Fragmentatio...
- Mon Mar 15, 2021 12:48 am
- Forum: General Discussion and Questions
- Topic: input() with uasyncio
- Replies: 4
- Views: 2755
- Mon Mar 15, 2021 12:46 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Lightsleep with wake from interrupt - how?
- Replies: 14
- Views: 9839
Re: Lightsleep with wake from interrupt - how?
Damien was the last to receive git blame on that code. Is there a way to tag him?
- Sat Mar 13, 2021 7:29 pm
- Forum: General Discussion and Questions
- Topic: input() with uasyncio
- Replies: 4
- Views: 2755
Re: input() with uasyncio
Peter has a wonderful tutorial for uasynio. It includes demos and I'd be surprised if one of them doesn't address your need. If you don't find a solution there, perhaps someone will have a suggestion here.
- Sat Mar 13, 2021 3:56 pm
- Forum: Programs, Libraries and Tools
- Topic: How to interrupt an infinite loop executed by exec in a thread?
- Replies: 6
- Views: 5728
Re: How to interrupt an infinite loop executed by exec in a thread?
Have you looked at _thread.exit ? I'm unsure how/if it is implemented in micropython as there is zero documentation on the wiki. You might want to go to the source and figure it out. My problem is how to interrupt the loop as quick as possible ,like this: CODE: SELECT ALL while True: if f_run == Fal...
- Sat Mar 13, 2021 1:44 am
- Forum: General Discussion and Questions
- Topic: DS18B20 library problem
- Replies: 2
- Views: 2208
Re: DS18B20 library problem
Some code would probably help narrow down the problem, however I'm going to take a safe guess that your main loop is something like this? mport machine, onewire, ds18x20, time ds_pin = machine.Pin(4) ds_sensor = ds18x20.DS18X20(onewire.OneWire(ds_pin)) roms = ds_sensor.scan() print('Found DS devices...
- Fri Mar 12, 2021 3:22 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Lightsleep with wake from interrupt - how?
- Replies: 14
- Views: 9839
Re: Lightsleep with wake from interrupt - how?
John, Looking through the source, I found what might be a hint. I'm not sure if this is at all helpful. Find "wake". You might also search that repository for something like rp2 (the port) and sleep or wake. If you find an answer, I'd be interested. My RP2s are still in the packaging. https://github...