MRuby on LPCXpresso55S69
Go to file
Yilin Sun 4bf56bf36c
Adjusted UART RX buffer.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-03-14 23:38:23 +08:00
.vscode.example Initial commit 2023-03-03 06:07:13 +00:00
board Added basic MRB app. 2023-03-03 18:07:20 +08:00
include Added initial AUX control. 2023-03-10 09:44:43 +08:00
lib Implemented GPIO. 2023-03-14 22:56:39 +08:00
SDK@3969019d6a Added basic MRB app. 2023-03-03 18:07:20 +08:00
src Adjusted UART RX buffer. 2023-03-14 23:38:23 +08:00
.clang-format Fixed LN de-init and re-init, added testing REPL. 2023-03-07 23:23:01 +08:00
.gitignore Initial commit 2023-03-03 06:07:13 +00:00
.gitmodules Added basic compiler with FreeRTOS. 2023-03-06 00:28:25 +08:00
app_flash.ld Added basic compiler with FreeRTOS. 2023-03-06 00:28:25 +08:00
arm-none-eabi.cmake Fixed LN de-init and re-init, added testing REPL. 2023-03-07 23:23:01 +08:00
CMakeLists.txt Adjusted UART RX buffer. 2023-03-14 23:38:23 +08:00
LPCXpresso55S69.mex Added basic MRB app. 2023-03-03 18:07:20 +08:00
README.md Implemented GPIO. 2023-03-14 22:56:39 +08:00

WIP

Implemented features:

# Initialization: Takes a hash with configuration.
led_red   = Machine::GPIO.new({pin: 38, mode: Machine::GPIO::OUTPUT_OD, init: Machine::GPIO::ON})
led_blue  = Machine::GPIO.new({pin: 36, mode: Machine::GPIO::OUTPUT_OD, init: Machine::GPIO::ON})
led_green = Machine::GPIO.new({pin: 39, mode: Machine::GPIO::OUTPUT_OD, init: Machine::GPIO::ON})
led_red.value # Get LED pin input value
led_red.value = Machine::GPIO::OFF # Turn on the LED (Level is reversed)
led_red.off # Same as above
led_red.on # Turn off the LED (Level is reversed)
led_red.toggle # Toggle output