Hi,
a simple analog read example which reads the temperature from sensor TMP36 and logs the result.
Code:
Sub Process_Globals
Public Serial1 As Serial
Private TempSensorPin As Pin 'Output pin connected from the TMP36 sensor
Private TempSensorPinNumber As Byte = 0x00 'Pin number used is A0 (Analog)
Private MeasureTimer As Timer 'Timer for the sensor measurement
Private MeasureTimerInterval As ULong = 2...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1U7qRmB
via IFTTT
Aucun commentaire:
Enregistrer un commentaire