Hi there
I use WiFi_LoRa_Kit 32 V1, with Arduino.
This is my Code:
#include “Arduino.h”
#include “heltec.h”
//#include “images_Logo_Heltec.h”
//#include “WiFi.h”
// Inputs
#define I1 36 // PIN 4
#define I2 37 // PIN 5
#define I3 38 // PIN 6
#define I4 39 // PIN 7
#define I5 34 // PIN 8
#define I6 35 // PIN 9
#define I7 32 // PIN 10
#define I8 33 // PIN 11
#define I9 26 // PIN 13
#define I10 27 // PIN 14
// Outputs
#define Q1 23 // PIN 29
#define Q2 18 // PIN 30
#define Q3 5 // PIN 31
#define Q4 2 // PIN 33
#define Q5 17 // PIN 35
int count (1);
/*
void logo(){
Heltec.display -> clear();
Heltec.display -> drawXbm(0,5,logo_width,logo_height,(const unsigned char *)logo_bits);
Heltec.display -> display();
}
*/
void setup()
{
Heltec.begin(true /DisplayEnable Enable/, false /LoRa Enable/, true /Serial Enable/, false /LoRa use PABOOST/, 868E6 /LoRa RF working band/);
Serial.begin(9600);
// Inputdefinition
pinMode(I1, INPUT);
pinMode(I2, INPUT);
pinMode(I3, INPUT);
pinMode(I4, INPUT);
pinMode(I5, INPUT);
pinMode(I6, INPUT);
pinMode(I7, INPUT);
pinMode(I8, INPUT);
pinMode(I9, INPUT);
pinMode(I10,INPUT);
digitalWrite(I1, HIGH);
digitalWrite(I2, HIGH);
digitalWrite(I3, HIGH);
digitalWrite(I4, HIGH);
digitalWrite(I5, HIGH);
digitalWrite(I6, HIGH);
digitalWrite(I7, HIGH);
digitalWrite(I8, HIGH);
But the Definition “HIGH” it isn`t works.
Then I try this:
pinMode(I1, INPUT_PULLUP);
pinMode(I2, INPUT_PULLUP);
pinMode(I3, INPUT_PULLUP);
pinMode(I4, INPUT_PULLUP);
pinMode(I5, INPUT_PULLUP);
pinMode(I6, INPUT_PULLUP);
pinMode(I7, INPUT_PULLUP);
pinMode(I8, INPUT_PULLUP);
pinMode(I9, INPUT_PULLUP);
pinMode(I10,INPUT_PULLUP);
But this works not too.
Where is the problem?
Have ESP32-Chip Pullup-Resistors?
Thanks for your answers.
Greetings
Martin