mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.2 MAX14661
This commit is contained in:
parent
194bf809bf
commit
63ee41d892
@ -2,6 +2,10 @@ compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
- uno
|
||||
- leonardo
|
||||
- due
|
||||
- zero
|
||||
# - due
|
||||
# - zero
|
||||
# - leonardo
|
||||
- m4
|
||||
- esp32
|
||||
# - esp8266
|
||||
# - mega2560
|
||||
|
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021-2021 Rob Tillaart
|
||||
Copyright (c) 2021-2022 Rob Tillaart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -2,13 +2,14 @@
|
||||
// FILE: MAX14661.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2021-01-29
|
||||
// VERSION: 0.1.1
|
||||
// VERSION: 0.1.2
|
||||
// PURPOSE: Arduino library for MAX14661 16 channel I2C multiplexer
|
||||
// URL: https://github.com/RobTillaart/MAX14661
|
||||
//
|
||||
// HISTORY:
|
||||
// 0.1.0 2021-01-29 initial version
|
||||
// 0.1.1 2021-08-30 add shadow interface - experimental
|
||||
// 0.1.0 2021-01-29 initial version
|
||||
// 0.1.1 2021-08-30 add shadow interface - experimental
|
||||
// 0.1.2 2021-12-21 update library.json, license, minor edits
|
||||
|
||||
|
||||
#include "MAX14661.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
// FILE: MAX14661.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2021-01-29
|
||||
// VERSION: 0.1.1
|
||||
// VERSION: 0.1.2
|
||||
// PURPOSE: Arduino library for MAX14661 16 channel I2C multiplexer
|
||||
// URL: https://github.com/RobTillaart/MAX14661
|
||||
//
|
||||
@ -13,7 +13,7 @@
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define MAX14661_LIB_VERSION (F("0.1.1"))
|
||||
#define MAX14661_LIB_VERSION (F("0.1.2"))
|
||||
|
||||
|
||||
class MAX14661
|
||||
@ -112,13 +112,9 @@ private:
|
||||
|
||||
int _error;
|
||||
|
||||
|
||||
|
||||
// cache direct registers?
|
||||
// cache direct registers?
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/MAX14661/blob/master/LICENSE)
|
||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/MAX14661.svg?maxAge=3600)](https://github.com/RobTillaart/MAX14661/releases)
|
||||
|
||||
|
||||
# MAX14661
|
||||
|
||||
Arduino library for MAX14661 multiplexer with I2C interface.
|
||||
|
@ -1,11 +1,9 @@
|
||||
//
|
||||
// FILE: MAX14661_MUX.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.0
|
||||
// PURPOSE: demo PAIR interface
|
||||
// DATE: 2021-01-29
|
||||
// URL: https://github.com/RobTillaart/MAX14661
|
||||
//
|
||||
|
||||
|
||||
#include "Wire.h"
|
||||
@ -77,3 +75,4 @@ void loop()
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
//
|
||||
// FILE: MAX14661_PAIR.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.0
|
||||
// PURPOSE: demo PAIR interface
|
||||
// DATE: 2021-01-29
|
||||
// URL: https://github.com/RobTillaart/MAX14661
|
||||
//
|
||||
|
||||
|
||||
#include "Wire.h"
|
||||
@ -13,6 +11,7 @@
|
||||
|
||||
MAX14661 mux(0x4C); // 0x4C..0x4F
|
||||
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
@ -94,9 +93,11 @@ void test5()
|
||||
Serial.println(mux.getChannels(), HEX);
|
||||
}
|
||||
|
||||
|
||||
void loop()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
//
|
||||
// FILE: MAX14661_SHADOW.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.0
|
||||
// PURPOSE: demo PAIR interface
|
||||
// DATE: 2021-08-30
|
||||
// URL: https://github.com/RobTillaart/MAX14661
|
||||
//
|
||||
|
||||
|
||||
#include "Wire.h"
|
||||
@ -47,6 +45,7 @@ void test1()
|
||||
Serial.println(mux.getShadowChannelMaskB());
|
||||
}
|
||||
|
||||
|
||||
void test2()
|
||||
{
|
||||
Serial.println();
|
||||
@ -61,6 +60,7 @@ void test2()
|
||||
Serial.println(mux.getShadowChannelMaskB());
|
||||
}
|
||||
|
||||
|
||||
void test3()
|
||||
{
|
||||
Serial.println();
|
||||
@ -105,3 +105,4 @@ void loop()
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -1,13 +1,11 @@
|
||||
//
|
||||
// FILE: MAX14661_isConnected.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.0
|
||||
// PURPOSE: test MAX14661 lib
|
||||
// DATE: 2021-01-29
|
||||
// URL: https://github.com/RobTillaart/MAX14661
|
||||
//
|
||||
|
||||
// test behavior when device is not connected and reconnected again.
|
||||
// test behaviour when device is not connected and reconnected again.
|
||||
// E.g. simulate loose wires..
|
||||
|
||||
|
||||
@ -34,6 +32,7 @@ void setup()
|
||||
Serial.println("end of setup()");
|
||||
}
|
||||
|
||||
|
||||
void loop()
|
||||
{
|
||||
if (!connected && mux.isConnected())
|
||||
@ -46,10 +45,9 @@ void loop()
|
||||
{
|
||||
connected = false;
|
||||
}
|
||||
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Syntax Coloring Map for MAX14661
|
||||
# Syntax Colouring Map for MAX14661
|
||||
|
||||
|
||||
# Datatypes (KEYWORD1)
|
||||
# Data types (KEYWORD1)
|
||||
MAX14661 KEYWORD1
|
||||
|
||||
|
||||
|
@ -15,8 +15,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/MAX14661.git"
|
||||
},
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*"
|
||||
"platforms": "*",
|
||||
"headers": "MAX14661.h"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=MAX14661
|
||||
version=0.1.1
|
||||
version=0.1.2
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for MAX14661 16 channel I2C multiplexer
|
||||
|
@ -39,6 +39,7 @@
|
||||
|
||||
unittest_setup()
|
||||
{
|
||||
fprintf(stderr, "MAX14661_LIB_VERSION: %s\n", (char *) MAX14661_LIB_VERSION);
|
||||
}
|
||||
|
||||
|
||||
@ -49,8 +50,6 @@ unittest_teardown()
|
||||
|
||||
unittest(test_constructor)
|
||||
{
|
||||
fprintf(stderr, "VERSION: %s\n", MAX14661_LIB_VERSION);
|
||||
|
||||
MAX14661 MUX(0x4C);
|
||||
MUX.begin();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user