C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
probe.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "pico/stdlib.h"
14
20class Probe
21{
22private:
27 uint _gpio;
33 constexpr static int _channel_map[8] = {6, 7, 8, 9, 16, 17, 21, 26};
34
35public:
44 Probe(uint _channel);
49 void hi();
54 void lo();
60 void pulse_us(uint _duration);
66 void copy(bool _value);
67};
void pulse_us(uint _duration)
Generates a HI level pulse on the GPIO during _duration µs.
Definition probe.cpp:23
Probe(uint _channel)
Construct a new Probe object.
Definition probe.cpp:4
void copy(bool _value)
Used to copy the boolean _value on th GPIO.
Definition probe.cpp:30
void hi()
Generates a HI logical level on the GPIO.
Definition probe.cpp:13
void lo()
Generates a LO logical level on the GPIO.
Definition probe.cpp:18