Skip to content

peterhellberg/microview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microview

Build Status Go Report Card GoDoc License MIT

Go library used to remote control a MicroView

Requirements

Install

Go package

go get -u github.com/peterhellberg/microview

MicroView Arduino Library

Note: This package requires the use of a newer version of the MicroView Arduino Library (v1.07b or later) than what is currently available in the Arduino Library Manager.

So just follow these steps instead:

  1. Change directory to Arduino's main directory (~/Documents/Arduino/ in my case)
  2. cd libraries
  3. mkdir MicroView
  4. cd MicroView
  5. git clone https://github.com/geekammo/MicroView-Arduino-Library.git .

Arduino sketch

Now you need to upload the following sketch to your MicroView using the Arduino IDE

#include <MicroView.h>

void setup() {
  uView.begin();
  uView.clear(PAGE);

  Serial.begin(115200);
  Serial.print("MicroView");
}

void loop() {
  uView.checkComm();
}

Example

package main

import (
	"flag"
	"log"
	"time"

	. "github.com/peterhellberg/microview"
)

func main() {
	name := flag.String("name", "/dev/cu.usbserial-DA00SSM3", "name of the serial port")

	flag.Parse()

	mv, err := OpenMicroView(*name, Delay(90*time.Millisecond))
	if err != nil {
		log.Fatal(err)
	}

	mv.Run(
		RectFill(5, 5, 5, 15),
		RectFill(25, 0, 30, 15),
		Rect(1, 1, 20, 40),
		Rect(40, 20, 20, 20),
		Rect(40, 20, 15, 15),
		Rect(40, 20, 10, 10),
		Rect(40, 20, 5, 5),
	)
}

rectangles

About

Go library used to remote control a MicroView

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages