C# Class RPi.SenseHat.Demo.Demos.Compass

Note! You must calibrate the magnetic sensor by moving the Raspberry Pi device around in an 'eight' figure a few seconds at startup!
Inheritance: SenseHatDemo
Datei anzeigen Open project: emmellsoft/RPi.SenseHat

Public Methods

Method Description
Compass ( ISenseHat senseHat, Action setScreenText ) : System
Run ( ) : void

Private Methods

Method Description
GetPixelCoordinate ( double angle ) : Point

Method Details

Compass() public method

public Compass ( ISenseHat senseHat, Action setScreenText ) : System
senseHat ISenseHat
setScreenText Action
return System

Run() public method

public Run ( ) : void
return void