Paul Sokolovsky
26f00ff154
tests/run-tests: Allow to skip set tests.
...
If sets are not enabled, set literals lead to SyntaxError during parsing,
so it requires feature_check. Set tests are skipped based on set_*.py
pattern.
2017-01-05 00:16:29 +03:00
Glenn Ruben Bakke
6cddad02a8
nrf5/drivers: Creating python object implementation (locals) to be used for epaper sld00200p.
2017-01-04 21:10:06 +01:00
Glenn Ruben Bakke
4c0bb63e2b
nrf5: Moving color defines in lcd_mono_fb from .c to .h so that it can be reused by other modules.
2017-01-04 21:06:51 +01:00
Glenn Ruben Bakke
6a077806c6
nrf5: Enable MICROPY_FINALISER and REPL_AUTO_INDENT.
2017-01-04 20:11:41 +01:00
Glenn Ruben Bakke
31a54e063a
nrf5/drivers: Adding requirement for nrf52 target on the epaper sld00200p for now. There is no ported PWM module for nrf51 target yet. Hence, soft PWM for nrf51 needs to be added.
2017-01-04 20:05:01 +01:00
Glenn Ruben Bakke
cc3364db7f
nrf5: Adding suffix to _obj on epaper_sld00200p module.
2017-01-04 20:00:10 +01:00
Glenn Ruben Bakke
643bf19466
nrf5: Correcting define name for epaper sld00200p, missing 0.
2017-01-04 19:59:12 +01:00
Glenn Ruben Bakke
d2f5f1fe60
nrf5/drivers: Enable EPAPER_SLD00200P in epaper module globals table.
2017-01-04 19:57:58 +01:00
Glenn Ruben Bakke
6300c6045a
nrf5/drivers: Adding missing file for epaper module / driver.
2017-01-04 19:56:53 +01:00
Glenn Ruben Bakke
5875013670
nrf5/modules: Moving python scripts to examples folder to free up some flash space on constrained targets as modules folder is used as frozen files folder.
2017-01-04 17:27:02 +01:00
Glenn Ruben Bakke
25947a1b00
nrf5/boards: Enable display module to be built in. Also adding one epaper display and one tft lcd to test display module when porting the corresponding drivers to micropython.
2017-01-04 17:22:58 +01:00
Glenn Ruben Bakke
87f250deec
nrf5/drivers: Removing external decleration of display module in header.
2017-01-04 17:20:51 +01:00
Glenn Ruben Bakke
2b92438d94
nrf5/drivers: Renaming display module to mp_module prefix as it is going to be inbuilt. ifdef'ing all submodules based on type of display configured through mpconfigport.h
2017-01-04 17:20:00 +01:00
Glenn Ruben Bakke
6b492cd8c4
nrf5/drivers: Adding ifdef sourrounding the implementation of module. Configurable with mpconfigport.h.
2017-01-04 17:18:47 +01:00
Glenn Ruben Bakke
bace74fba4
nrf5: Adding display module to port builtins.
2017-01-04 17:14:44 +01:00
Glenn Ruben Bakke
f97eded57e
nrf5/drivers: Adding driver files to makefile. Implicitly adding display module.
2017-01-04 17:13:19 +01:00
Paul Sokolovsky
eac22e29a5
all: Consistently update signatures of .make_new and .call methods.
...
Otherwise, they serve reoccurring source of copy-paste mistakes and
breaking nanbox build.
2017-01-04 16:10:42 +03:00
Damien George
c3f70c603e
docs/library/esp: Document esp.set_native_code_location() function.
2017-01-04 23:48:19 +11:00
Damien George
bae7798f1e
esp8266/modules/flashbdev: Add RESERVED_SECS before the filesystem.
...
Starting at esp.flash_user_start(), the reserved sectors are for general
purpose use, for example for native code generation. There is currently
one sector reserved as such.
2017-01-04 23:47:09 +11:00
Paul Sokolovsky
b0f23786da
esp8266/Makefile: Put firmware-ota.bin in build/, for consistency.
2017-01-04 10:36:28 +03:00
Paul Sokolovsky
52c19875a4
esp8266/general: Add "Scarcity of runtime resources" section.
...
With warnings of need to close files, sockets, etc.
2017-01-04 10:33:48 +03:00
Damien George
54ea10a76a
tests/pyb/uart: Update test to match recent change to UART timeout_char.
2017-01-04 17:53:41 +11:00
Max
e1f495a4bd
docs/esp8266/tutorial: Close socket after reading page content.
2017-01-04 11:15:02 +11:00
Glenn Ruben Bakke
bae425ca05
nrf5/drivers: Adding template for c-implementation of lcd, epaper and oled drivers as a display module.
2017-01-03 22:16:00 +01:00
Glenn Ruben Bakke
5265d70329
nrf5/modules: Updating to correct name of display in epaper driver.
2017-01-03 21:32:17 +01:00
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