Search found 8 matches

by FoldedToad
Wed Apr 24, 2019 7:29 pm
Forum: Other Boards
Topic: [nRF52] Fix for buffered stdio
Replies: 1
Views: 246

[nRF52] Fix for buffered stdio

It appears the current port of nRF does not support buffered stdio. Hopefully, this will fix that issue and allow support for buffered stdio. Normally, buffered stdio is optioned in the ./port/nrf/mpconfigport.h file as shown below. #define MICROPY_PY_SYS_STDFILES (1) #define MICROPY_PY_SYS_STDIO_BU...
by FoldedToad
Thu Apr 18, 2019 8:40 pm
Forum: General Discussion and Questions
Topic: Any MicroPython books?
Replies: 2
Views: 320

Any MicroPython books?

I noticed that there is a Chinese book just released [url]http://bbs.eeworld.com.cn/thread-506230-1-1.html/url] which appears to cover general MicroPython usage. Does anyone know of a similar book in English? Is there a thread on this forum for citing MP related books and such?
by FoldedToad
Wed Apr 17, 2019 3:57 am
Forum: Other Boards
Topic: [nRF52] Button/LED support though IOExpander on PCA10040 and PCA10056 boards
Replies: 0
Views: 155

[nRF52] Button/LED support though IOExpander on PCA10040 and PCA10056 boards

For those using the Nordic nRF52 eval boards for MicroPython development, you might be interested in freeing the GPIO pins consumed by the Buttons/LEDs. This can be accomplished by shorting the pin 5 (SHIELD_DETECT) of the ICSP header to ground. This shorting will free the Button/LED GPIOs, but resu...
by FoldedToad
Tue Apr 16, 2019 7:51 pm
Forum: Other Boards
Topic: [nRF52] Port of uPyLora to PCA10040 and PCA10056 boards
Replies: 0
Views: 157

[nRF52] Port of uPyLora to PCA10040 and PCA10056 boards

I have ported the uPyLora stack ( https://github.com/lemariva/uPyLora ) to the Nordic nRF52 series demo boards: PCA10040 and PCA10056. Much of this porting involved board-specific issues. If interested, please read the README.md at https://github.com/foldedtoad/more_py_please/tree/master/uPyLora for...
by FoldedToad
Fri Mar 29, 2019 12:05 am
Forum: Other Boards
Topic: [nRF52] linker error: lib/oofatfs/option/unicode.o: No such file or directory
Replies: 1
Views: 255

[nRF52] linker error: lib/oofatfs/option/unicode.o: No such file or directory

I pulled from master branch yesterday and upon rebuilding receive the following linker error. LINK build-pca10040/firmware.elf arm-none-eabi-gcc: error: build-pca10040/lib/oofatfs/option/unicode.o: No such file or directory Makefile:302: recipe for target 'build-pca10040/firmware.elf' failed make: *...
by FoldedToad
Wed Mar 13, 2019 10:59 pm
Forum: Other Boards
Topic: [nRF52] Accelerometer module for LIS3DH using FIFO mode
Replies: 0
Views: 290

[nRF52] Accelerometer module for LIS3DH using FIFO mode

I am working of driver for the STMicro LIS3DH 3-axis accelerometer. The micropython source code is at https://github.com/foldedtoad/more_py_please/tree/master/lis3dh . The README.md file should give general operational overview. Out-of-the-box, this code configures for a 25Hz sample rate with a 25 s...
by FoldedToad
Sun Mar 03, 2019 9:46 pm
Forum: Other Boards
Topic: [nRF52] compile error in ble_drv.c with fix
Replies: 0
Views: 172

[nRF52] compile error in ble_drv.c with fix

I am building micro python with on a Ubuntu 16.04 system using the Ubuntu gcc toolchain package (see gcc info below) -- robin@deeplearner:~/micropython/ports/nrf$ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software...
by FoldedToad
Sun Feb 24, 2019 12:00 am
Forum: Other Boards
Topic: [nRF52] Any examples on interrupt handling for the nRF52?
Replies: 1
Views: 422

Re: [nRF52] Any examples on interrupt handling for the nRF52?

I have worked though the "pin" module, which supports, among other things, irq(). I have attached a simple demo program which illustrates how to catch interrupt events generated from GPIO pins. This demo captures interrupts from the four switches on the PCA10040 board. I have only tested this with t...