Commit Graph

8333 Commits

Author SHA1 Message Date
Glenn Ruben Bakke ef234503ef nrf5/modules: Adding python epaper display driver. Currently colors have been reversed. 2017-01-03 21:25:06 +01:00
Glenn Ruben Bakke c34127e754 nrf5/hal: Fixing bug in mp_hal_pin_read in mphalport.h which tried to read an OUT register. Corrected to read the IN register. 2017-01-03 21:17:37 +01:00
Glenn Ruben Bakke 7b6bdc4c2b nrf5: Adding sleep_us to modutime.c and exposing mp_hal_delay_us in hal/hal_time.h 2017-01-03 21:15:53 +01:00
Glenn Ruben Bakke 70198b07a5 nrf5/lcd: Updating framebuffer with double buffer for epaper displays. Moving statics into instance struct. Adding new function to refresh using old buffer, such that epaper can get a cleaner image after update. 2017-01-03 21:12:49 +01:00
Glenn Ruben Bakke 11fc46ca6f nrf5/boards: Adding initial microbit build files and board configurations. 2017-01-03 17:02:49 +01:00
Glenn Ruben Bakke 31569dc952 nrf5: Makefile option to set FLASHER when doing flash target. If defined in board .mk file, this will be used, else nrfjprog will be used by default (segger). This opens up for using pyocd flashtool and still run 'make flash'. 2017-01-03 17:00:06 +01:00
Glenn Ruben Bakke 4b6a12a251 nrf5/boards: Updating pca10028 board config to not define RTS/CTS pins when HWFC is set to 0. 2017-01-03 16:57:05 +01:00
Glenn Ruben Bakke 994b1689e3 nrf5/uart: Making compile time exclusion of RTS/CTS if not defined to use flow control by board configuration. 2017-01-03 16:54:33 +01:00
Dave Hylands 3c84197f17 drivers/onewire: Enable pull up on data pin.
The driver seems to be be enabling the pullup resistor in most places, but
not this one. Making this one little change allows onewire devices to be
used with no external pullup resistor.
2017-01-03 17:19:22 +11:00
TheSpooler 3d96201165 esp8266/modesp: Fix a typo, print -> printf. 2017-01-03 17:10:13 +11:00
Damien George 3f9c45efd1 py/asmarm: Fix assembler's PASS_EMIT constant name. 2017-01-03 15:40:50 +11:00
Paul Sokolovsky 714a59ab64 esp8266/modesp: Make check_fw() work with OTA firmware. 2017-01-03 00:02:00 +03:00
Paul Sokolovsky f5750e88c5 esp8266/Makefile: Produce OTA firmware as firmware-ota.bin. 2017-01-02 19:29:41 +03:00
Paul Sokolovsky 86d210951f esp8266/scripts/inisetup: Dump FS starting sector/size on error.
Should allow to diagnose/try to recover FS easier.
2017-01-02 18:52:35 +03:00
Glenn Ruben Bakke 04751defa0 nrf5/spi: Removing automatic chip select (NSS) in hal_spi.c. Also removing configuration of this pin as it is confusing to pass it if not used. User of SPI has to set the NSS/CS itself. 2017-01-02 12:51:56 +01:00
Glenn Ruben Bakke bcb0c9d8cb nrf5/modules: Updating PWM test python script to cope with new api. 2016-12-31 17:21:38 +01:00
Glenn Ruben Bakke 1bc50dbeb5 nrf5/hal: Fixing some issues in PWM stop function. Doing a proper stop and disable the peripheral. 2016-12-31 17:20:54 +01:00
Glenn Ruben Bakke 3d120ac103 nrf5/pwm: Implementing start and stop call to hal on init and deinit as hal_init does not longer start the PWM automatically. 2016-12-31 17:07:30 +01:00
Glenn Ruben Bakke 5e322ea078 nrf5/hal: Exposing two new PWM hal functions start() and stop(). 2016-12-31 17:06:07 +01:00
Glenn Ruben Bakke c5d77f0e7e nrf5/hal: Moving enablement of PWM task from init to a start function. Also activating code in stop function to stop the PWM. 2016-12-31 17:05:32 +01:00
Glenn Ruben Bakke 38607ee445 nrf5/modules: Adding licence text on seeedstudio tft shield python modules. 2016-12-31 14:02:05 +01:00
Paul Sokolovsky 5efd6508ec unix/moduselect: Fix nanbox build with recent changes. 2016-12-31 11:19:25 +03:00
Paul Sokolovsky 093a8f5fa2 unix/moduselect: If file object passed to .register(), return it in .poll().
This makes unix "uselect" compatible with baremetal "uselect". Previosuly,
unix version accepted file/socket objects, but internally converted that
to file descriptors, and that's what .poll() returned. To acheive new
behavior, file-like objects are stored internally in an array, in addition
to existing array of struct pollfd. This array is created only on first
case of file-like object being passed to .register(). If only raw fd's are
passed, there will be no additional memory used comparing to the original
implementation.
2016-12-31 00:07:18 +03:00
Damien George d377c83794 docs/library/machine.I2C: Fix I2C constructor docs to match impl. 2016-12-30 15:25:48 +11:00
Andrew Mulholland 71ff0b549d docs/esp8266/tutorial: Update intro to add Getting the firmware section.
Add a "Getting the firmware" section to better describe how to get hold of
the MicroPython firmware, especially if you have a 512kb module.
2016-12-30 14:27:02 +11:00
Paul Sokolovsky b315d76b6b cc3200/README: Reorganize and update to the current state of affairs.
Try to put sections in more logical order, and information about cc3200tool
to be the default flashing method.
2016-12-29 19:46:25 +03:00
Glenn Ruben Bakke 520105aaa7 nrf52/boards: Tuning linker script for nrf52832 when using iot softdevice. Need more heap for LCD framebuffer. 2016-12-29 17:08:16 +01:00
Glenn Ruben Bakke 64d2827233 nrf5/lcd: Adding lcd_mono_fb.c to source list in the makefile. Adding define in implementation to de-select the file from being included. Adding module to PORT BUILTIN in mpconfigport.h 2016-12-29 17:03:15 +01:00
Glenn Ruben Bakke a7832a203f nrf52/sdk: Correcting path to iot softdevice if SDK is enabled. 2016-12-29 16:48:47 +01:00
Glenn Ruben Bakke 387725ce60 nrf5: Adding help text for CTRL-D (soft reset) and and CTRL-E (paste mode) in help.c 2016-12-29 16:12:54 +01:00
Glenn Ruben Bakke 342ffadc59 nrf5: Adding handling of CTRL+D to reset chip in main.c. Call to NVIC System Reset is issued. 2016-12-29 16:11:59 +01:00
Glenn Ruben Bakke 82746d4549 nrf5/lcd: Correcting indention (tabs with space) in framebuffer module source and header. 2016-12-29 15:54:47 +01:00
Glenn Ruben Bakke c8ff22ced0 nrf5/lcd: Changing framebuffer to use petme128 8x8 font. This is vertical font. Code modified to flip and mirror the font when rendering a character. Adding copy of the font from stmhal. 2016-12-29 15:35:24 +01:00
Paul Sokolovsky 0748143a4c cc3200: Add targets to erase flash, deploy firmware using cc3200tool.
cc3200tool, https://github.com/ALLTERCO/cc3200tool is a (mostly, some
binary blobs present) open-source, Linux-friendly tool to flash a cc3200
devices. It's an alternative to fully proprietary, Windows-only Uniflash
from TI.

The provided make targets are for erasing flash, flashing the uPy
bootloader and firmware, and flashing vendor's WiFi firmware "servicepacks"
(the latter needs to be downloaded from vendor side, a link is present
inside Makefile).
2016-12-29 17:12:47 +03:00
Glenn Ruben Bakke af116d1d80 nrf5/modules: Adding new driver for seeedstudio tft shield v2, using new framebuffer module which handles faster update on single lines, callback driven write on each line which is touched in the framebuffer. 2016-12-29 14:39:41 +01:00
Glenn Ruben Bakke 0626371378 nrf5/lcd: Adding header file for lcd_mono_fb. 2016-12-29 14:31:56 +01:00
Glenn Ruben Bakke 6179abd6f7 nrf5/lcd: Updating brackets in framebuffer module. 2016-12-29 14:30:24 +01:00
Glenn Ruben Bakke 85c9db4bcd nrf5/lcd: Renaming variable name from m_ to p_ 2016-12-29 14:26:26 +01:00
Glenn Ruben Bakke d14a72795c nrf5/lcd: Cleaning up a bit in lcd framebuffer. 2016-12-29 14:25:30 +01:00
Glenn Ruben Bakke 88e45f85c3 nrf5/lcd: Adding work in progress monochrome lcd framebuffer driver which only updates modified (dirty) display lines. 2016-12-29 13:03:47 +01:00
Glenn Ruben Bakke 02203389c2 nrf5/modules: Updating pulse test to set output direction on the LED pin used in the test. 2016-12-29 08:53:38 +01:00
Glenn Ruben Bakke cfbe91a709 nrf5/modules: Updating seeedstudio tft lcd driver to render using already existing framebuffer implementation. 2016-12-29 08:52:32 +01:00
Glenn Ruben Bakke 5f4cf7b908 nrf5/boards: Bouncing up heap to 32k on pca10040 to allow for application to allocate 9600bytes+ framebuffer when using LCD screen (240x320). 2016-12-29 08:49:20 +01:00
Rami Ali 75aa7befec tests/unix: Improve runtime_utils.c test coverage. 2016-12-29 18:24:03 +11:00
Rami Ali b7024f0f64 tests/cmdline: Improve repl.c autocomplete test coverage. 2016-12-29 17:14:04 +11:00
Rami Ali f397e1fdf0 tests/thread: Improve modthread.c test coverage. 2016-12-29 13:27:50 +11:00
Rami Ali c15ebf7c8c tests/extmod: Improve ubinascii.c test coverage. 2016-12-29 13:22:19 +11:00
Paul Sokolovsky 45a8cc8f0b cc3200: make: Rename "deploy" target to "deploy-ota".
There should be target to deploy uPy over wired (UART) connection, and
wired and OTA targets should be named differently.
2016-12-29 01:27:50 +03:00
Paul Sokolovsky 514b82900c cc3200/README: (Re)add information about accessing REPL on serial. 2016-12-28 21:44:47 +03:00
Paul Sokolovsky 076b80467b cc3200: Enable UART REPL by default.
To allow access and testing without complex access methods like WiFi.
Enabled for both WiPy and TI LaunchXL.
2016-12-28 14:57:36 +03:00