ESP-IDF CI / Host Tests (Unity) (push) Successful in 1m8s
CI / firmware-native (push) Successful in 2m57s
Rust Protection Tests / Cargo test (host) (push) Failing after 3m21s
ESP-IDF CI / ESP-IDF Build (v5.4) (push) Failing after 6m55s
ESP-IDF CI / Memory Budget Gate (push) Has been skipped
qa-cicd-environments / qa-kxkm-s3-build (push) Successful in 8m53s
qa-cicd-environments / qa-sim-host (push) Successful in 2m2s
qa-cicd-environments / qa-kxkm-s3-memory-budget (push) Successful in 11m17s
Context: the project archive (KXKM_Batterie_Parallelator-main) had no git history locally; a fresh repository is needed to host it on git.saillant.cc (electron/KXKM_Batterie_Parallelator). Approach: initialize a new repo on branch main, stage the archive content, and harden .gitignore before the first commit. Changes: - Import the full project tree: firmware/, firmware-idf/, firmware-rs/, iosApp/, kxkm-bmu-app/, kxkm-api/, hardware/, docs/, specs/, scripts/, models/, tests/ - Keep project dotfiles tracked despite the trailing '.*' ignore rule: .github/, .claude/, .superpowers/, .gitattributes, .markdownlint.json - Extend .gitignore: firmware/src/credentials.h (local secrets, template kept), kxkm-bmu-app/**/build/ (66 MB compiled iOS framework), .remember/ (session data) Impact: the project can now be maintained on the self-hosted Gitea forge with a clean, secret-free initial history.
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
// ESP32 I2C Scanner
|
|
// Based on code of Nick Gammon http://www.gammon.com.au/forum/?id=10896
|
|
// ESP32 DevKit - Arduino IDE 1.8.5
|
|
// Device tested PCF8574 - Use pullup resistors 3K3 ohms !
|
|
// PCF8574 Default Freq 100 KHz
|
|
#include <Arduino.h>
|
|
#include <Wire.h>
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin (115200);
|
|
Wire.begin (32, 33); // sda= GPIO_21 /scl= GPIO_22
|
|
}
|
|
|
|
void Scanner ()
|
|
{
|
|
Serial.println ();
|
|
Serial.println ("I2C scanner. Scanning ...");
|
|
byte count = 0;
|
|
Wire.setClock(50 * 1000); // set I2C clock in KHz
|
|
for (byte i = 8; i < 120; i++)
|
|
{
|
|
Wire.beginTransmission (i); // Begin I2C transmission Address (i)
|
|
delay(50);
|
|
if (Wire.endTransmission () == 0) // Receive 0 = success (ACK response)
|
|
{
|
|
Serial.print ("Found address: ");
|
|
Serial.print (i, DEC);
|
|
Serial.print (" (0x");
|
|
Serial.print (i, HEX); // PCF8574 7 bit address
|
|
Serial.println (")");
|
|
count++;
|
|
}
|
|
}
|
|
Serial.print ("Found ");
|
|
Serial.print (count, DEC); // numbers of devices
|
|
Serial.println (" device(s).");
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
Scanner ();
|
|
delay (100);
|
|
} |