micropython/examples
Damien George af20c2ead3 py: Add global default_emit_opt variable to make emit kind persistent.
mp_compile no longer takes an emit_opt argument, rather this setting is now
provided by the global default_emit_opt variable.

Now, when -X emit=native is passed as a command-line option, the emitter
will be set for all compiled modules (included imports), not just the
top-level script.

In the future there could be a way to also set this variable from a script.

Fixes issue #4267.
2019-08-28 12:47:58 +10:00
..
SDdatalogger stmhal: Update boot.py files to use VCP instead of CDC. 2016-08-29 15:17:34 +10:00
embedding py: Add global default_emit_opt variable to make emit kind persistent. 2019-08-28 12:47:58 +10:00
hwapi examples: hwconfig_console: Add .on()/.off() methods. 2017-10-09 00:22:30 +03:00
network examples/http_client: Use read() instead of readall(). 2016-11-14 00:24:45 +03:00
unix examples/unix/ffi_example: Clean up and update the ffi example. 2018-10-23 11:50:39 +11:00
accel_i2c.py examples/accel_i2c.py: Switch to "machine" module. 2015-11-29 02:56:26 +02:00
accellog.py examples/accellog.py: Change 1: to /sd/, and update comment about FS. 2016-11-18 17:00:54 +11:00
asmled.py py: Big improvements to inline assembler. 2014-04-13 00:30:32 +01:00
asmsum.py py: Big improvements to inline assembler. 2014-04-13 00:30:32 +01:00
conwaylife.py various: Spelling fixes 2017-05-29 11:36:05 +03:00
ledangle.py LED Fix 2014-05-31 23:10:10 -06:00
mandel.py Small edits to examples to get them working again with unix/micropython. 2014-01-24 22:26:13 +00:00
micropython.py py: Rename byte_code to bytecode everywhere. 2014-05-10 10:36:38 +01:00
pins.py all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
pyb.py examples: Update conwaylife to work with new LCD API. 2014-10-19 19:02:34 +01:00
switch.py remove `__doc__ =` and fix tweak doc diffs 2014-06-03 07:46:12 -06:00