setgem

0.1.0 • Public • Published

setgem

Build Status

setgem is GR-CITRUS client and GR-CITRUS Command Line Interface.

https://gyazo.com/2700dbd8858484d6f51243915258643d

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? 1
citrus: 2.08(2016/9/22)f3(256KB)
mruby: 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

https://gyazo.com/35c2248b5a6813068194a1bcff21d07b

$ setgem use ./main.rb
$ setgem trem
H
 
EEPROM FileWriter Ver. 1.75.v2
 Command List

control + x key, to execrate the Compile and Send Textfile.

>X main.mrb 494
 
Waiting  60 59
main.mrb(494) Saving....
Hello, mruby.

Program

var setgem = require('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

Readme

Keywords

Package Sidebar

Install

npm i setgem

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ogom