Specifications of Microbitv1.3B is as shown
| Item | Description |
| Model | Nordic nRF51822-QFAA-R rev 3 |
| Core variant | Arm Cortex-M0 32 bit processor |
| Flash ROM | 256KB |
| RAM | 16KB |
| Speed | 16MHz |
| Debug | SWD, jlink/OB |
In the interface, are greeted with options to program the microbit with blocks or wwith javascript. The website is nice in that it provides
a simulation of the circuit being run, hence it is easy to see the results of your code.
Once we're satisfied with the code, we can download it as a .hex file, and upload it to the microbit by dragging the downloaded file into
the microbit folder. Microbit is smart enough to notice that we are uploading a firmware into it and starts to flash it into its memory
The video shows the LEDs lighting up in a wave like form, but in reality it only lights up for 1 second, and turns off for 1 second. This is
because the LEDs change so fast it is unperceivable to the human eye, but sampled by the camera at some intervals to produce this artifact.
Specifications of Raspberry Pi 4B is as shown
| Name | Description |
|---|---|
| SOC Type | Broadcom BCM2711 |
| Core Type | Cortex-A72 (ARM v8) 64-bit |
| No. Of Cores | 4 |
| GPU | VideoCore VI |
| CPU Clock | 1.5 GHz |
| Debug | SWD, jlink/OB |
| RAM | 1 GB , 2 GB, 4 GB, 8GB LPDDR4 |
We can view the pinouts of Raspberry Pi via the pinout command.
From the image above, we observe that each "pin" is tied to a GPIO number. This is an important detail later on
We can write a python script to access these GPIO pins via RPi.GPIO. The official guide to using the library can be found
here.
Raspi OS comes with a convenient IDE called Thonny. We then put a similar logic code into the raspberry pi and show that it can be programmed
via Thonny and the script can be executed in the IDE as well. If we leave the cursor in the interpreter located at the bottom of Thonny, we
can issue Keyboard Interrrupts to cleanly exit the code and cleanup the pin usages.
To use the pins, we need to first set the Library to operate in BOARD mode or SOC mode. BOARD mode allows us to identify which pins to
use via "channel numbers", which is a human assigned index on the board that corresponds to a potentially different GPIO pin number. For example,
channel 3 refers to GPIO2. After using the pins, it is also the developer's responsibility to clean up the GPIO pins by resetting it to a default
state via the cleanup command.