mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
firmata: extended data types on pins to allow subplatform usage
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
|
||||
using namespace upm;
|
||||
|
||||
HCSR04::HCSR04 (uint8_t triggerPin, uint8_t echoPin) {
|
||||
HCSR04::HCSR04 (int triggerPin, int echoPin) {
|
||||
m_name = "HCSR04";
|
||||
|
||||
m_triggerPinCtx = mraa_gpio_init (triggerPin);
|
||||
|
@ -65,7 +65,7 @@ class HCSR04 {
|
||||
* @param fptr Function pointer to handle rising-edge and
|
||||
* falling-edge interrupts
|
||||
*/
|
||||
HCSR04 (uint8_t triggerPin, uint8_t echoPin);
|
||||
HCSR04 (int triggerPin, int echoPin);
|
||||
/**
|
||||
* HCSR04 object destructor
|
||||
*/
|
||||
|
Reference in New Issue
Block a user