Commit Graph

60 Commits

Author SHA1 Message Date
Fabien Chouteau
3e828649f8 Bump copyright notice 2020-03-10 17:22:21 +01:00
Shawn Nock
d26e14e5c2 nRF52832 and nRF52 DK Support 2020-03-10 17:22:21 +01:00
Fabien Chouteau
6eb0b3473f micro:bit: add an example for the accelerometer
The accelerometer init procedure is replaced by elaboration initialization to
match the interface of the other micro:bit features.
2019-11-12 17:57:14 +01:00
Fabien Chouteau
b1b3d1dfe2 MicroBit: Add console package
Provides an interface to send and receive character on the UART over USB
line of the MicroBit.
2019-10-28 11:02:44 +01:00
Fabien Chouteau
456c3231ac Use startup-gen on MicroBit board support 2019-08-22 19:53:17 +02:00
Fabien Chouteau
2b7931dc31 Add support for startup-gen
startup-gen is a tool that generates crt0 and linker script from a
device configuration (CPU name, memory layout). The tool only works for
ZFP run-times right now.

This patch also switches the HiFive1 support to use startup-gen.
2019-08-22 19:53:17 +02:00
Thomas Quinot
d1a8c341c5 Add support for NeoPixel and similar LED strips (#302)
* Add support for NeoPixel and similar LED strips

* Rename MicroBit.IOs.LEDs to MicroBit.IOs.NeoPixel

As suggested on #302.

* Regenerate projects after addition of NeoPixel middleware
2019-07-09 16:42:32 +02:00
Fabien Chouteau
6a08295037 Turn off warnings for anonymous allocators 2019-06-21 18:44:44 +02:00
Thomas Quinot
997b5e39f3 Fix typo in comment 2019-04-30 10:26:31 +02:00
Fabien Chouteau
5a295f2184 MicroBit.I2C: clean up device definition 2018-10-26 19:32:51 +02:00
Fabien Chouteau
55afc38909 MicroBit: add SPI support 2018-10-26 19:32:51 +02:00
Thomas Quinot
419345d7eb Ensure value of State is correct even in state change callbacks
Update the States array prior to calling button state change callbacks,
so that it reflects the current, not previous, state of buttons.
2018-10-05 14:38:12 +02:00
Thomas Quinot
466f0dc4a2 Add minimal example of servo motor control. 2018-09-26 18:32:21 +02:00
Fabien Chouteau
48a4f35c38 Optional style checks and warning as error switches
This patch makes style checks and warning as error switches controllable
with a scenario variable: ADL_BUILD_CHECKS (disabled by default).

With this we can enforce style checks on all contributions by enabling
ADL_BUILD_CHECKS in testsuite runs and CI builds.

On the other hand the checks are disabled by default which means it is
easier and more friendly to play with the library and the examples.

Part of #271
2018-09-03 20:00:01 +02:00
Fabien Chouteau
21cc91b974 MicroBit: Add Music package to play simple tunes on a buzzer 2018-07-13 19:44:34 +02:00
Fabien Chouteau
b1329b9421 MicroBit.IOs: Remove Touched function until it is actually implemented 2018-07-13 19:44:34 +02:00
Fabien Chouteau
c6c6881365 MicroBit.IOs: Implement analog output using PWM signals 2018-07-13 19:44:34 +02:00
Fabien Chouteau
45de87cbcf MicroBit: Add accelerometer driver 2018-07-13 19:44:34 +02:00
Fabien Chouteau
0eb5d1c6d4 MicroBit.I2C: Fix precondition and initialization 2018-07-13 19:44:34 +02:00
Fabien Chouteau
6ccd49829d Micro:bit: Add I2C package 2018-07-13 19:44:34 +02:00
Fabien Chouteau
b454fe106d MicroBit: Fix button B
As discussed in #267, MicroBit.Time was configuring the Low Frequency
Clock to use an external crystal, but there is no LFC external crystal
on the micro:bit. Also the button B is connected to the pin used for the
LFC crystal, so this configuration meant the pin was actually not
available as GPIO for the button code.

MicroBit.Time now uses synthesized clock for LFC so the pin is available
for button B.
2018-07-13 11:37:44 +02:00
Fabien Chouteau
4393bb829d Micro:bit example: Update for GNAT Community 2018 2018-06-27 15:57:37 +02:00
Fabien Chouteau
2c681438ba project_wizard.py: Fix typo in config key name 2018-04-27 21:16:41 +02:00
Fabien Chouteau
571f0d2f1a Remove unused project files 2018-04-27 21:16:41 +02:00
Fabien Chouteau
0d4618a793 configuration: Fix missing middleware source directory 2018-04-27 21:16:41 +02:00