Damien George
69661f3343
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
5 years ago
Paul Sokolovsky
53966fd9a8
examples: hwconfig_console: Add .on()/.off() methods.
Add these methods to this "GPIO output emulated with console prints"
config.
7 years ago
Paul Sokolovsky
0af974b777
examples/hwapi/soft_pwm2_uasyncio: Update for call_later_ms().
Following finalized naming in uasyncio.
8 years ago
Paul Sokolovsky
5feeba8897
examples/hwapi/hwconfig*: Use inline Signal() args where possible.
8 years ago
Paul Sokolovsky
11a962099e
examples/hwapi: Add config for Zephyr port of 96Boards Carbon.
8 years ago
Damien George
61616e84ce
extmod/machine_signal: Rename "inverted" arg to "invert", it's shorter.
A shorter name takes less code size, less room in scripts and is faster to
type at the REPL.
Tests and HW-API examples are updated to reflect the change.
8 years ago
Paul Sokolovsky
dd00d0134b
examples/hwapi/soft_pwm: Use Signal on()/off() methods.
Just one sample is updated with on()/off() for now, there should be
remaining sample(s) showing .value() use (but more can be converted later,
as long as 1 or so good samples of .value() remains).
8 years ago
Damien George
c66c393130
examples/hwapi: Be sure to import Signal when it's used.
8 years ago
Kai Fricke
c8febe631a
examples/hwapi: Add hwconfig_pyboard.py for pyboard.
8 years ago
Paul Sokolovsky
a4a439caa3
examples/button_reaction: Update for time_pulse_us() no longer raising exc.
8 years ago
Paul Sokolovsky
a5bed53738
examples/hwapi: Consistently use Signal class to define LEDs.
8 years ago
Paul Sokolovsky
297af6036e
examples/hwapi: Use Signal for inverted LED on ESP-12.
8 years ago
Paul Sokolovsky
1e9093f8cb
examples/hwapi/hwconfig_console: Don't alloc memory in value().
8 years ago
Paul Sokolovsky
00d6f99cf1
examples/hwapi: Add hwconfig for console tracing of LED operations.
8 years ago
Paul Sokolovsky
b188d6e9db
examples/hwapi: Add example for machine.time_pulse_us().
8 years ago
Paul Sokolovsky
bf318801d2
examples/hwapi: Add uasyncio example of fading 2 LEDs in parallel.
8 years ago
Paul Sokolovsky
99e5badeb1
examples/hwapi: Add soft_pwm example converted to uasyncio.
8 years ago
Paul Sokolovsky
3c0da6a359
examples/hwapi: button_led: Add GPIO pin read example.
Requires BUTTON defined in hwconfig, so far tested on DragonBoard 410c.
8 years ago
Paul Sokolovsky
29f3f84fbd
examples/hwapi: Add hwconfig for DragonBoard 410c.
This requires recently added implementation of machine.Pin from
micropython-lib.
8 years ago
Paul Sokolovsky
8f068e84ee
examples/hwapi: Example showing best practices for HW API usage in apps.
Showing and providing detailed instructions and motivation.
8 years ago