Giter Site home page Giter Site logo

Comments (5)

s-hadinger avatar s-hadinger commented on June 19, 2024

Sorry, you're alone here. Platform is the way to go

from berry.

dragoncoder047 avatar dragoncoder047 commented on June 19, 2024

Is there some tool that would concatenate all the needed source files into one big berry_all.h/berry_all.c that could be included?

from berry.

skiars avatar skiars commented on June 19, 2024

I haven't used arduino, but from my experience with Visual Studio, it should be sufficient to add all the source files to the project.

It is recommended to look at how the Makefile contains these source files. However, that the src directory is Berry's core code, while the default directory is the implementation of the default interpreter program (aka berry.exe). You will need to refer to default to implement your own interpreter, even if it is simply an evaluation of strings.

from berry.

dragoncoder047 avatar dragoncoder047 commented on June 19, 2024

I haven't used arduino, but from my experience with Visual Studio, it should be sufficient to add all the source files to the project.

I though that would be sufficient too, but unfortunately Arduino is super weird. It copies files to a temp directory before it compiles, and it only copies the files that are right next to the source .ino file. If I have to try PlatformIO again, I will, and fingers crossed it was a cosmic ray last time and it will work.

If it doesn't work, either I will have to look into sidestepping the Arduino IDE manually and compiling/flashing via command line, or I have a plan B that I will need to finish.

from berry.

rjjrbatarao avatar rjjrbatarao commented on June 19, 2024

I got it working on arduino ide, took me a month with gotchas and finally compiled, my only problem now is how to reuse esp classes and expose them to berry. https://github.com/rjjrbatarao/berry_arduino

from berry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.