drivers

package module
v0.0.0-...-40c61b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

drivers

Drivers for various ancillary hardware used in reef-pi, based on reef-pi/hal

Build Status Coverage Status Go Report Card License GoDoc

Introduction

This repository contains a set of drivers for ancillay hardware used in reef-pi project. They are intended to have minimal dependencies (most cases only reef-pi/rpi). These drivers API are not stable, and subjected to change as per reef-pi's requirement.

Currently available drivers

  • PWM: PCA9685
  • LED Display: HT16k33
  • pH probe: Atlas scientific ezo ph circuit
  • ph_board: ADS1115 based pH circuits
  • ph4502c: ADS1115 based pH circuits
  • pico-board: ATSAMD10 pH adapter for the blueAcro Pico board

License

Copyright:: Copyright (c) 2018 Ranjib Dey. License:: Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Index

Constants

View Source
const (
	REGISTER_DISPLAY_SETUP = 0x80
	REGISTER_SYSTEM_SETUP  = 0x20
	REGISTER_DIMMING       = 0xE0
	BLINKRATE_OFF          = 0x00
	BLINKRATE_2HZ          = 0x01
	BLINKRATE_1HZ          = 0x02
	BLINKRATE_HALFHZ       = 0x03
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HT16K33

type HT16K33 struct {
	// contains filtered or unexported fields
}

func NewHT16K33

func NewHT16K33(bus i2c.Bus) *HT16K33
func (h *HT16K33) Blink() error

func (*HT16K33) Display

func (h *HT16K33) Display(word string) error

func (*HT16K33) Setup

func (h *HT16K33) Setup() error

Directories

Path Synopsis
Package pca9685 defines an I2C driver for a single PCA9685 chip connected over I2C
Package pca9685 defines an I2C driver for a single PCA9685 chip connected over I2C

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL