mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.3 I2C_SCANNER
This commit is contained in:
parent
94bbde3ef9
commit
80b4c2fccb
@ -1,3 +1,18 @@
|
||||
platforms:
|
||||
rpipico:
|
||||
board: rp2040:rp2040:rpipico
|
||||
package: rp2040:rp2040
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
- ARDUINO_ARCH_RP2040
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
packages:
|
||||
rp2040:rp2040:
|
||||
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
|
||||
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
@ -8,4 +23,6 @@ compile:
|
||||
- m4
|
||||
- esp32
|
||||
- esp8266
|
||||
# - mega2560
|
||||
# - mega2560
|
||||
- rpipico
|
||||
|
||||
|
22
libraries/I2C_SCANNER/CHANGELOG.md
Normal file
22
libraries/I2C_SCANNER/CHANGELOG.md
Normal file
@ -0,0 +1,22 @@
|
||||
# Change Log I2C_SCANNER
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.1.3] - 2022-10-30
|
||||
- Add RP2040 support to build-CI.
|
||||
- Add CHANGELOG.md
|
||||
- extend example
|
||||
|
||||
|
||||
## [0.1.2] - 2022-08-30
|
||||
- elaborate up to useful version
|
||||
|
||||
## [0.1.1] - 2022-08-29
|
||||
- elaborate more
|
||||
|
||||
## [0.1.0] - 2022-08-29
|
||||
- initial version
|
@ -1,15 +1,16 @@
|
||||
//
|
||||
// FILE: I2C_SCANNER.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.2
|
||||
// VERSION: 0.1.3
|
||||
// DATE: 2022-08-29
|
||||
// PURPOSE: I2C scanner class
|
||||
//
|
||||
// HISTORY: see changelog.md
|
||||
|
||||
|
||||
#include "I2C_SCANNER.h"
|
||||
|
||||
|
||||
|
||||
I2C_SCANNER::I2C_SCANNER(TwoWire *wire)
|
||||
{
|
||||
_wire = wire;
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: I2C_SCANNER.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.2
|
||||
// VERSION: 0.1.3
|
||||
// DATE: 2022-08-29
|
||||
// PURPOSE: I2C scanner class
|
||||
//
|
||||
@ -10,7 +10,7 @@
|
||||
#include "Arduino.h"
|
||||
#include "Wire.h"
|
||||
|
||||
#define I2C_SCANNER_LIB_VERSION (F("0.1.2"))
|
||||
#define I2C_SCANNER_LIB_VERSION (F("0.1.3"))
|
||||
|
||||
|
||||
class I2C_SCANNER
|
||||
|
@ -19,12 +19,17 @@ void setup()
|
||||
|
||||
scanner.begin();
|
||||
|
||||
for (int port = 0; port < scanner.getWirePortCount(); port++)
|
||||
int ports = scanner.getWirePortCount();
|
||||
Serial.print("PORTS: \t");
|
||||
Serial.println(ports);
|
||||
|
||||
for (int port = 0; port < ports; port++)
|
||||
{
|
||||
scanner.setWire(port);
|
||||
int cnt = scanner.count();
|
||||
Serial.print("Port: \t");
|
||||
Serial.print(port);
|
||||
Serial.print("\t");
|
||||
Serial.print("\tCount: \t");
|
||||
Serial.println(cnt);
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/I2C_SCANNER.git"
|
||||
},
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=I2C_SCANNER
|
||||
version=0.1.2
|
||||
version=0.1.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino class to implement an I2C scanner.
|
||||
|
Loading…
Reference in New Issue
Block a user