Skip to content

projekt86/goartik

Repository files navigation

Goartik

Goartik is Golang library for Samsung ARTIK Modules.

Futures

  • Support ARTIK 520 board (soon all)
  • Automatic detection board model
  • GPIO (digital read and write)
  • Support board pin map

Goals

  • Support all borads model
  • Support rest communication protocols I2C etc.
  • More example projects

Installation

go get -u github.com/projekt86/goartik

Examples

Create new artik module object (automatic model type)

module, err := goartik.NewModule()
	if err != nil {
		log.Fatalln(err.Error())
	}

Create new artik module object (manual model type)

module, err := goartik.NewModule(goartik.A520)
	if err != nil {
		log.Fatalln(err.Error())
	}

Digital pin mode IN, OUT

module.DigitalPinMode(8, goartik.OUT)
module.DigitalPinMode(7, goartik.IN)

Digital pin write HIGH, LOW

module.DigitalWrite(8, goartik.HIGH)

Digital pin read HIGH, LOW

module.DigitalRead(8)

License

MIT licensed. See the LICENSE file for details.

About

Samsung ARTIK Module Golang library support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages