In this article we look at the Arch from Seeed. Its an MBed compatible board with Arduino headers fitted and is reasonably low cost
Features
NXP LPC11U24 MCU
Low power ARM Cortex-M0 Core
48MHz, 32KB Flash, 8KB RAM, 4KB EEPROM
USB Device, 2xSPI, UART, I2C
Here is a pinout of the Arch
Code
Some simple flashy LED examples that use the mbed online compiler
To program the device you do the following
The button of Arch is specially designed to provide two functions:
Quick press to reset
Long press to enter USB ISP mode, a CRP DISABLD disk will pop up.
On Windows, replace firmware.bin with your program binary file generated from the MBed compiler
Example 1
[codesyntax lang=”cpp”]
#include "mbed.h" DigitalOut myled1(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); DigitalOut myled4(LED4); int main() { while(1) { myled1 = 1; wait(0.2); myled1 = 0; wait(0.2); myled2 = 1; wait(0.5); myled2 = 0; wait(0.2); myled3 = 1; wait(0.7); myled3 = 0; wait(0.2); myled4 = 1; wait(0.9); myled4 = 0; wait(0.2); } }
[/codesyntax]
Example 2
[codesyntax lang=”cpp”]
#include "mbed.h" DigitalOut myled1(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); DigitalOut myled4(LED4); int main() { while(1) { myled1 = 1; myled2 = 1; myled3 = 1; myled4 = 1; wait(0.5); myled1 = 0; myled2 = 0; myled3 = 0; myled4 = 0; wait(0.5); } }
[/codesyntax]
We will use this for MBed examples