Giter Club home page Giter Club logo

asel's People

Contributors

jonpas avatar

Watchers

 avatar  avatar  avatar

asel's Issues

Format resulting C code

var options = new Hashtable<String, String>()
options.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", "1.8")
options.put("org.eclipse.jdt.core.compiler.compliance", "1.8")
options.put("org.eclipse.jdt.core.compiler.source", "1.8")
var codeFormatter = ToolFactory.createCodeFormatter(options)
var textEdit = codeFormatter.format(CodeFormatter.K_COMPILATION_UNIT, result, 0, result.length(), 0, "");

.format is for some reason unavailable except on deprecated createCodeFormatter() method.

Integrate PlatformIO `init`

$ platformio init --ide eclipse --board «board»

Need to figure out how to call above with ProcessBuilder after project has been generated.

var pb = new ProcessBuilder.inheritIO().command("platformio", "init", "--ide", "eclipse", "--board", '''«board»''');
pb.redirectOutput(Redirect.INHERIT);
pb.directory(new File("/home/..."));
pb.start();

Additionally change src_dir to src-gen.

Integrate PlatformIO `run`

$ platformio -f -c eclipse run
$ platformio -f -c eclipse run --target upload

Makefile reference:

BOARDS = lolin_d32

all:
	platformio -f -c vim run

upload:
	platformio -f -c vim run --target upload

clean:
	platformio -f -c vim run --target clean

program:
	platformio -f -c vim run --target program

uploadfs:
	platformio -f -c vim run --target uploadfs

update:
	platformio -f -c vim update

init:
	platformio init --ide vim $(addprefix -b ,$(BOARDS))

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.