Here's an interesting video showing ESP32 w/ Displays.
https://hackaday.com/2018/05/23/esp32-b ... -overview/
It'd be great to see MicroPython support on a few of these.
Search found 14 matches
- Thu May 24, 2018 8:28 pm
- Forum: ESP32 boards
- Topic: ESP32 w/ Displays
- Replies: 1
- Views: 2127
- Thu May 17, 2018 3:47 pm
- Forum: WiPy and CC3200 boards
- Topic: TI CC1352R
- Replies: 1
- Views: 15077
TI CC1352R
Hi, Does anyone know if the new dual-radio chip from TI, the CC1352R, would be a good candidate for uPy porting? From the spec sheet: CC1352R SimpleLink High-Performance Dual-Band Wireless MCU ... features a 48 MHz Arm® Cortex®-M4F Processor, 352KB of In-System Programmable Flash, 256KB of ROM for P...
- Mon Apr 09, 2018 2:41 pm
- Forum: General Discussion and Questions
- Topic: Unix Port - Import Paths
- Replies: 9
- Views: 5288
Re: Unix Port - Import Paths
Heh, yep. I woke up this morning and thought, doh... just add the other paths. :) #!/bin/bash export CURDIR=$(pwd) export MICROPYPATH="$HOME/.micropython/lib:/usr/lib/micropython:$CURDIR/../src" for TEST_FILE in $(ls test_*.py); do IMPORT_NAME="${TEST_FILE%.*}" echo "Testing $IMPORT_NAME" micropytho...
- Mon Apr 09, 2018 1:25 am
- Forum: General Discussion and Questions
- Topic: Unix Port - Import Paths
- Replies: 9
- Views: 5288
Re: Unix Port - Import Paths
I'm having a difficult time getting this working satisfactorily. With regards to: sys.path.append(os.path.join(os.path.dirname(__file__), '../src')) It doesn't seem that os.path is implemented in micropython. Further, __file__ is a relative path anyways. If I use: export MICROPYPATH="../src" My sys...
- Fri Apr 06, 2018 9:10 pm
- Forum: General Discussion and Questions
- Topic: Python Containers and Embed-Ops
- Replies: 1
- Views: 1708
Python Containers and Embed-Ops
This is a lofty thread since my experience with Python only dates to mid-2017. However, I have been programming, using virtualization and "containers" since the early 2000s. I read this link via Hacker News: https://www.tedinski.com/2018/04/03/why-containers.html What stands out to me is that the ha...
- Fri Apr 06, 2018 9:01 pm
- Forum: General Discussion and Questions
- Topic: Unix Port - Import Paths
- Replies: 9
- Views: 5288
- Fri Apr 06, 2018 12:47 am
- Forum: General Discussion and Questions
- Topic: Unit Testing - Squelching Print Statements
- Replies: 2
- Views: 2041
Unit Testing - Squelching Print Statements
I'm running unit tests within the unix port and some functions generate output via print. Is there a way to temporarily disable standard output from within the micropython environment, or redirect one output to another? I see sys.stderr and sys.stdout but it's not obvious how to manipulate them.
- Fri Apr 06, 2018 12:22 am
- Forum: General Discussion and Questions
- Topic: Unix Port - Import Paths
- Replies: 9
- Views: 5288
Re: Unix Port - Import Paths
Ah, I read that... and for some reason assumed it was read-only
This works:
But how could I easily run this for each test... are there are any published best practices for test rigs?
This works:
Code: Select all
sys.path.append('../src')
import file
- Fri Apr 06, 2018 12:06 am
- Forum: General Discussion and Questions
- Topic: Unix Port - Import Paths
- Replies: 9
- Views: 5288
Unix Port - Import Paths
If I have my project organized with a 'src' and 'tests' directory at the same level, how do I import src/file.py from within tests/test-file.py ? I understand that ~/.micropython/lib is searched... are other paths configurable? Can I pass the micropython binary an option or does it respect a env var...
- Thu Apr 05, 2018 5:50 pm
- Forum: Hardware Projects
- Topic: First look: USB Host Expansion Board by Semireg
- Replies: 0
- Views: 2285
First look: USB Host Expansion Board by Semireg
We created a USB Host Expansion Board for the PyCom dev modules. You can read more about it on the PyCom forums: https://forum.pycom.io/topic/2979/first-look-usb-host-expansion-board-by-semireg Thank you to everyone here that makes MicroPython possible. The technology surrounding uPy is the most exc...