CHIRIMENで動作確認の取れたデバイスをWebGPIO/I2C APIを使用し動作させるための基本プログラム集。Toolkit to develop CHIRIMEN and its document.
JavaScript HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LEDblink
button
i2c-ADT7410
i2c-PAJ7620-Gesture
i2c-PCA9685
i2c-S11059
i2c-SRF02
i2c-VEML6070
i2c-grove-accelerometer
i2c-grove-light
i2c-grove-oledDisplay
i2c-grove-touch
i2c-multi-sensors
readGpioValue
.gitignore
LICENSE
README.md

README.md

CHIRIMEN programing sample collection

Cording style

English

  • Sample codes should be fullfilled the below cording style.

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style

* Don't include the polyfill codes such as webgpio.js and webi2c.js.

comment on Feb 16, 2017 These examples has included polyfills the version of conforming to release CMN2015-1_B2GOS-20170301. So, Don't try bower install in this version.

日本語

  • サンプルコードは基本的に以下のコード規約に従ってください。

https://developer.mozilla.org/ja/docs/Mozilla/Developer_Guide/Mozilla_Coding_Style_Guide

* webgpio.js、webi2c.jsなどpolyfillのスクリプトはサンプルコードに含めないでください。

2017.02.16 コメント このサンプルには CHIRIMEN release CMN2015-1_B2GOS-20170301に適合するPolyfillが既に含まれています。 このためbower installは実施しないでください。

Description

LEDblink

It blinks an LED.

Please see also: http://qiita.com/kotakagi/items/3a4f7865ab784cd88cdd

button

It blinks on an LED when push a button.

Please see also: http://fabble.cc/chirimenedu/chirimenpushbutton

i2c-ADT7410

It reads a temperture sensor (ADT7410).

Please see also: http://qiita.com/kotakagi/items/56bba849295cf4c81d39#_reference-045b2acb9c1ec2f498df

i2c-SRF02

It reads a distance sensor (SRF02).

Please see also: http://qiita.com/kotakagi/items/56bba849295cf4c81d39#_reference-045b2acb9c1ec2f498df

i2c-grove-light

It reads a light sensor (Grove Digital Light Sensor).

Please see also: http://qiita.com/kotakagi/items/56bba849295cf4c81d39#_reference-045b2acb9c1ec2f498df

i2c-grove-accelerometer

It reads an accelerometer sensor (Grove Digital Accelerometer Sensor).

Please see also: http://qiita.com/kotakagi/items/56bba849295cf4c81d39#_reference-045b2acb9c1ec2f498df

i2c-PCA9685

It controls servo motors using servo driver(PCA9685).

Please see also: http://fabble.cc/chirimenedu/chirimenservo

i2c-veml6070

It controls a UV sensor(VEML6070).

Please see also: http://fabble.cc/kohichi000000/chirimen-veml6070

i2c-multi-sensors

It serially reads two sensors (temperture and distance) value.

i2c-S11059

It reads a color sensor (S11059).

i2c-PAJ7620-Gesture

It reads a gesture sensor (PAJ7620U2) (Grove Gesture v1).

Please see also: http://fabble.cc/tadfmac/chirimen-i2c-paj7620-gesture

i2c-grove-oledDisplay

It controls a Grove OLED Display

Please see also: http://fabble.cc/tadfmac/chirimen-oled-display

##LICENSE Copyright (c) 2016 CHIRIMEN Open Hardware

Licensed under the MIT License