-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arduino framework support discussion #155
Comments
cool |
Sounds like microcontrollers in University all over again. It's very cool doing things using a low level of abstraction. |
The implementation was very nice, You would continue with this implementation! ;)! |
for internal development, I came up with the idea of these memory modifications. #define MEM_CONFIG_RESERVED (0b00000001) /** unused for a while **/
#define MEM_CONFIG_MAX_VALUE (0b00000010) /** exists maximum value **/
#define MEM_CONFIG_MIN_VALUE (0b00000100) /** exists minimum value **/
#define MEM_CONFIG_NORMALIZE (0b00001000) /** transform clamp to map **/
#define MEM_CONFIG_GPIO_SEND (0b00010000) /** digital output **/
#define MEM_CONFIG_GPIO_READ (0b00100000) /** digital input **/
#define MEM_CONFIG_GPIO_PULL (0b01000000) /** pullup input **/
#define MEM_CONFIG_GPIO_ANAL (0b10000000) /** analogic/pwd **/ reflection
|
now fully supports GPIO 9e27da1, this was the first test turning on lights from an LED bulltin. #include <3bc.h>
void setup() {
lang_driver_init();
lang_line(MODE, NILL, 6);
lang_line(MUSE, 13, MEM_CONFIG_GPIO_SEND);
lang_line(ALOC, 13, HIGH);
lang_driver_run();
lang_driver_exit();
}
void loop() {}
|
implemented in 8d710c4 |
I'm bringing the discussion about supporting the arduino framework.
my initial idea is to have a memory configuration, which behaves like GPIO, so if you want to have better names than their numbers port, you can work with pointers.
Blink Example
equivalent in C
proposed in 3BC
The text was updated successfully, but these errors were encountered: