PlatformIO Framework Arduino [login to view URL] be possible to define ESP8575 inputs/outputs and their I2C addresses in Maschines/xxxxxx.h! Example: #define X_LIMIT_PIN PCF8575_ADR_0x20_NUM_13
$10-30 USD
Pagado a la entrega
I would be happy to find an experienced PlatformIO Framework Arduino programmer who can adapt the Github project [login to view URL] as follows: 1.) Correct integration of the PCF8575 library by Renzo Mischianti: [login to view URL]: lib_deps = xreef/PCF8575 library @ ^2.0.0 "[login to view URL]" 2.)8x ESP8575 with the addresses 0x20, 0x21.... must be able to be addressed. 3.)A pin on the ESP32 serves as an interrupt and triggers the reading of the PCF8575. 4.)The I2C bus (wire) should be able to be addressed with 400Hz Fast I2C bus. 3.)A pin on the ESP32 serves as an interrupt and triggers the readout of the PCF8575. 4.)The I2C bus (wire) should run at 400kHz fast I2C bus. 5.)The priority of real-time processing should be close to real time.
6.)For each of the 16 inputs/outputs the possibility to be assigned in the Maschines/xxxxxx.h must be given as usual in GRBL.
For example ( something like this ):
#define X_LIMIT_PIN PCF8575_ADR_0x20_NUM_13 #define SPINDLE_OUTPUT_PIN PCF8575_ADR_0x20_NUM_3 (if necessary with details of whether input or output) 7.)Summary of where, what and why was changed or added. 8.)Explanation of the correct definition / assignment of the inputs and outputs
Example how i used Input / output with platformio Framework Arduino:
[login to view URL]: lib_deps = xreef/PCF8575 library @ ^2.0.0
#include <Arduino.h>
#include <PCF8575.h>
// Set i2c address
PCF8575 pcf8575(0x20); //PCF_1
PCF8575 pcf8575_2(0x21); //PCF_2
#define ESP_INTERRUPTED_PIN 17 //ok
unsigned long timeElapsed; //ok
bool keyPressed = false; // PCF_int
void keyPressedOnPCF8575(){ //PCF_Interrupt
// [login to view URL]("keyPressedOnPCF8575");
keyPressed = true; //PCF_int
}
void setup()
{
[login to view URL](115200);
pinMode(ESP_INTERRUPTED_PIN, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(ESP_INTERRUPTED_PIN), keyPressedOnPCF8575, FALLING);
[login to view URL](P10, INPUT);
[login to view URL](P10, OUTPUT);
[login to view URL]();
}
void loop()
{
if (keyPressed){
uint8_t val = [login to view URL](P10);
if (val==HIGH) [login to view URL]("KEY PRESSED");
keyPressed= false;
}
[login to view URL](P10, HIGH);
delay(1000);
[login to view URL](P10, LOW);
delay(1000);
}
Nº del proyecto: #38591231
Sobre el proyecto
Adjudicado a:
With a passion for electrical engineering and in-depth knowledge of Arduino, I am confident in not only adapting the GitHub project you've mentioned but also exceeding your expectations. My profile showcases my experie Más
3 freelancers están ofertando un promedio de $27 por este trabajo
Hello Lindic, I'm excited about the opportunity to work on your PlatformIO Framework Arduino project. With my extensive experience in C programming and software architecture, I can seamlessly adapt the Github project Más