Skip to content

Commit 1675427

Browse files
authored
Merge pull request #211 from TcMenu/main-logging-testremove
#208 #207 Remove SimpleTest, Move logging to TcMenuLog library, Add m…
2 parents c66b639 + 0e6707f commit 1675427

18 files changed

+75
-1357
lines changed

cmake/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ add_library(IoAbstraction
33
../src/EepromAbstractionWire.cpp
44
../src/IoAbstraction.cpp
55
../src/IoAbstractionWire.cpp
6-
../src/IoLogging.cpp
76
../src/KeyboardManager.cpp
87
../src/ResistiveTouchScreen.cpp
98
../src/SwitchInput.cpp
10-
../src/TextUtilities.cpp
119
../src/wireHelpers.cpp
1210
../src/pico/PicoDigitalIO.cpp
1311
../src/pico/i2cWrapper.cpp
@@ -19,7 +17,7 @@ target_compile_definitions(IoAbstraction
1917
)
2018

2119
target_include_directories(IoAbstraction PUBLIC
22-
${PROJECT_SOURCE_DIR}/IoAbstraction/src
20+
${PROJECT_SOURCE_DIR}/lib/IoAbstraction/src
2321
)
2422

2523
target_link_libraries(IoAbstraction PUBLIC

library.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
},
2424
{
2525
"name": "TaskManagerIO"
26+
},
27+
{
28+
"name": "TcMenuLog"
2629
}
2730
],
28-
"version": "4.3.0",
31+
"version": "4.4.0",
2932
"license": "Apache-2.0",
3033
"frameworks": "arduino, mbed",
3134
"platforms": "*",

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#
55

66
name=IoAbstraction
7-
version=4.3.0
7+
version=4.4.0
88
maintainer=https://www.thecoderscorner.com
99
author=davetcc
1010
category=Other
1111
url=https://github.com/TcMenu/IoAbstraction
1212
sentence=Treat PCF8574, MCP23017 and Shift registers like pins, matrix keypad, touch screen handler, button press and rotary encoder management (switches) on any supported IO (including DfRobot & Joysticks) with event handling, interchangable AVR/I2C(AT24) EEPROMs.
1313
paragraph=Interchange between PCF8574, MCP23017, 74HC595, and regular pins. Fully debounced switches, rotary encoders, joystick encoder emulation (including on DfRobot), matrix keypads/keyboards, and touch screen input on any IO device that require no extra components in most cases. An EEPROM abstraction that works with AVR & I2C AT24x ROMs. Simple cross device btree collection.
1414
includes=IoAbstraction.h
15-
depends=TaskManagerIO,SimpleCollections
15+
depends=TaskManagerIO,SimpleCollections,TcMenuLog

platformio-test.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ extra_scripts = post:merge-bin.py
66
test_build_src = true
77

88
lib_deps =
9+
TcMenuLog
910
TaskManagerIO
1011
SimpleCollections
1112

platformio.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
framework = arduino
33

44
lib_deps =
5-
davetcc/TaskManagerIO@^1.4.3
6-
davetcc/SimpleCollections@^1.2.3
7-
davetcc/LiquidCrystalIO@^1.4.3
5+
davetcc/TcMenuLog
6+
tcmenu/TaskManagerIO@^1.4.3
7+
tcmenu/SimpleCollections@^1.2.3
8+
tcmenu/LiquidCrystalIO@^1.4.3
89
adafruit/Adafruit GFX Library@^1.11.9
910
adafruit/Adafruit ILI9341@^1.6.1
1011
adafruit/Adafruit FT6206 Library@^1.1.0

src/EepromAbstractionWire.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ uint8_t I2cAt24Eeprom::findMaximumInPage(uint16_t destEeprom, uint8_t len) const
6767
// We can read/write in bulk, but do no exceed the page size or we will read / write
6868
// the wrong bytes
6969
uint16_t offs = destEeprom % pageSize;
70-
uint16_t currentGo = min((uint16_t)pageSize, uint16_t(offs + len)) - offs;
70+
uint16_t currentGo = internal_min((uint16_t)pageSize, uint16_t(offs + len)) - offs;
7171

7272
// dont exceed the buffer length of the wire library
7373
auto absoluteMax = MAX_BUFFER_SIZE_TO_USE - 2;
74-
return min(currentGo, (uint16_t) absoluteMax);
74+
return internal_min(currentGo, (uint16_t) absoluteMax);
7575
}
7676

7777
uint8_t I2cAt24Eeprom::read8(EepromPosition position) {

src/IoLogging.cpp

Lines changed: 0 additions & 84 deletions
This file was deleted.

src/IoLogging.h

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)