setgem
setgem is GR-CITRUS client and GR-CITRUS Command Line Interface.
Features
- CLI is sub command style.
- Port to be selected in the automatic to see the manufacturer of RENESAS.
- Compile mruby and Send Textfile.
Requirements
Installation
$ npm install setgem -g
Usage
CLI
Invoke interactive configuration.
$ setgem init? Serial Port? /dev/cu.usbmodem1_1? Baud Rate? 9600? Data Bits? 8? Parity? none? Stop Bits? 1citrus: 2.08f3mruby: 1.2.0
Write and Running
Write and Running or Execrate.
$ setgem write main ./main.rb$ setgem run main$ setgem exec main ./main.rb --build
Terminal
Connect to the terminal
$ setgem use ./main.rb$ setgem tremH EEPROM FileWriter Ver. 1.75.v2 Command List
control
+ x
key, to execrate the Compile and Send Textfile.
>X main.mrb 494 Waiting 60 59main.mrb Saving....Hello, mruby.
Program
var setgem = var client = setgem.createClient({ serialport: { port: '/dev/cu.usbmodem1_1', options: { baudRate: 9600, dataBits: 8, parity: 'none', stopBits: 1 } }}); client.citrus.info(function(err, res) { console.log(res) # { citrus: '2.08(2016/9/22)f3(256KB)', mruby: '1.2.0' } });
Tests
$ npm test
Licence
- MIT