circuitpython/examples
Paul Sokolovsky af5b509c75 examples/unix/ffi_example: Clean up and update the ffi example.
1. Use uctypes.bytearray_at().

Implementation of the "ffi" module predates that of "uctypes", so
initially some convenience functions to access memory were added
to ffi. Later, they landed in uctypes (which follows CPython's
ctype module).

So, replace undocumented experimental functions from ffi to
documented ones from uctypes.

2. Use more suitable type codes for arguments (e.g. "P" (const void*)
instead of "p" (void*).

3. Some better var naming.

4. Clarify some messages printed by the example.
2018-10-23 11:50:39 +11:00
..
SDdatalogger stmhal: Update boot.py files to use VCP instead of CDC. 2016-08-29 15:17:34 +10:00
embedding examples/embedding: Fix hard-coded MP_QSTR_ value. 2018-09-14 13:33:08 +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