sketches

package
v0.0.0-...-0031c6d Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSketchFromPath

func NewSketchFromPath(path *paths.Path) (*sketches.Sketch, error)

NewSketchFromPath loads a sketch from the specified path

Types

type BoardMetadata

type BoardMetadata struct {
	Fqbn string `json:"fqbn,required"`
	Name string `json:"name,required"`
}

BoardMetadata represents the board metadata for the sketch

type Sketch

type Sketch struct {
	Name          string
	Path          string
	BoardMetadata *BoardMetadata `json:"board"`
}

Sketch is a sketch for Arduino

type SketchBook

type SketchBook struct {
	Path *paths.Path
}

SketchBook is a sketchbook

func NewSketchBook

func NewSketchBook(path *paths.Path) *SketchBook

NewSketchBook returns a new SketchBook object

func (*SketchBook) NewSketch

func (sketchbook *SketchBook) NewSketch(name string) (*sketches.Sketch, error)

NewSketch loads a sketch from the sketchbook

Jump to

Keyboard shortcuts

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