Example: draw a graph of analog inputs. More...
Go to the source code of this file.
Variables | |
VAR | S_W = 0 |
include libpruio More... | |
VAR | S_H = 0 |
VAR | gap = 2 |
VAR | BPP = 0 |
VAR | full = fb.GFX_FULLSCREEN |
VAR | p = INSTR(COMMAND, "x") |
VAR | w = VALINT(COMMAND) |
VAR | h = VALINT(MID(COMMAND, p + 1)) |
uint32 | last [...] |
uint32 | col |
VAR | io = NEW PruIo() |
VAR | scale = S_H / 65520 |
VAR | k = ASC(INKEY()) |
VAR | m = .StepMask |
VAR | neu = S_H - CUINT(.Value[i] * scale) |
VAR | j = i - 1 |
Example: draw a graph of analog inputs.
This file contains an example on how to use libpruio to continuously draw a graph of the sampled data from the analog input lines.
Licence: GPLv3
Copyright 2014 by Thomas{ dOt ]Freiherr[ At ]gmx[ DoT }net
Compile by:
fbc -w all oszi.bas
Definition in file oszi.bas.
uint32 last[...] |
uint32 col |