0.1.3 I2C_SCANNER

This commit is contained in:
rob tillaart 2022-11-12 17:08:10 +01:00
parent 94bbde3ef9
commit 80b4c2fccb
7 changed files with 54 additions and 9 deletions

View File

@ -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

View 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

View File

@ -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;

View File

@ -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

View File

@ -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);
}

View File

@ -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": "*",

View File

@ -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.