-
Notifications
You must be signed in to change notification settings - Fork 29
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 setup #101
Comments
This needs to be fixed. Kit shouldn't complain about things that are declared but not implemented. We're at least getting to code generation; if you run kitc with
Thanks for the report; we can definitely make the process smoother. |
Also, the gcc name is actually |
For now I hacked by removing the declaration there. I have successfully use kit to generate the c code and compiles manually and upload an arduino and it is blinking! |
Ahh, forgot to mention, I also need to disable these two lines in
|
Good note - Rust has a specific mode for embedded which disables most of its standard library, Kit will need something like that as well. |
Keeping this open as a TODO. There are a few things to tackle:
|
Describe the problem. What did you see? What did you expect to see?
First of all, Arduino expects two "main" functions
void setup()
andvoid loop()
.From what I learned from other resources, when compiling manually (instead of compiling with the Arduino IDE), one has to include the
Arduino.h
header. I did so in Kit withinclude "Arduino.h";
and used#[extern]
to keep the function name. However kit complainssetup
andloop
is re-declared because it is already declared inArduino.h
.Anyway, I commented out the
#[extern]
just to see if I can use the avr gcc to compile the code. But then I get this output https://pastebin.com/Jp1VRYLEIf this is a code issue, provide a minimal code example:
./build.sh
:./src/hello.kit
:Environment
The text was updated successfully, but these errors were encountered: