mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.1 SIMON
This commit is contained in:
parent
b18b0873a8
commit
8cea2ae13f
27
libraries/SIMON/.arduino-ci.yml
Normal file
27
libraries/SIMON/.arduino-ci.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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:
|
||||||
|
- uno
|
||||||
|
# - due
|
||||||
|
# - zero
|
||||||
|
# - leonardo
|
||||||
|
- m4
|
||||||
|
- esp32
|
||||||
|
- esp8266
|
||||||
|
# - mega2560
|
||||||
|
- rpipico
|
16
libraries/SIMON/CHANGELOG.md
Normal file
16
libraries/SIMON/CHANGELOG.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Change Log SIMON
|
||||||
|
|
||||||
|
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.1] - 2022-11-24
|
||||||
|
- Add RP2040 support to build-CI.
|
||||||
|
- Add CHANGELOG.md
|
||||||
|
|
||||||
|
|
||||||
|
## [0.1.0] - 2022-05-26
|
||||||
|
- initial version
|
||||||
|
|
@ -15,7 +15,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/RobTillaart/SIMON"
|
"url": "https://github.com/RobTillaart/SIMON"
|
||||||
},
|
},
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*",
|
"platforms": "*",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=SIMON
|
name=SIMON
|
||||||
version=0.1.0
|
version=0.1.1
|
||||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||||
sentence=Arduino library to build the "Simon says" game or a digital lock.
|
sentence=Arduino library to build the "Simon says" game or a digital lock.
|
||||||
|
@ -2,12 +2,9 @@
|
|||||||
// FILE: simon.cpp
|
// FILE: simon.cpp
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// DATE: 2022-05-26
|
// DATE: 2022-05-26
|
||||||
// VERSION: 0.1.0
|
// VERSION: 0.1.1
|
||||||
// PURPOSE: Arduino library for SIMON
|
// PURPOSE: Arduino library for SIMON
|
||||||
// URL: https://github.com/RobTillaart/SIMON
|
// URL: https://github.com/RobTillaart/SIMON
|
||||||
//
|
|
||||||
// HISTORY:
|
|
||||||
// 0.1.0 2022-05-26 initial version
|
|
||||||
|
|
||||||
|
|
||||||
#include "simon.h"
|
#include "simon.h"
|
||||||
@ -115,5 +112,5 @@ uint8_t SIMON::maxSize()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// -- END OF FILE --
|
// -- END OF FILE --
|
||||||
|
|
||||||
|
@ -3,17 +3,18 @@
|
|||||||
// FILE: simon.h
|
// FILE: simon.h
|
||||||
// AUTHOR: Rob Tillaart
|
// AUTHOR: Rob Tillaart
|
||||||
// DATE: 2022-05-26
|
// DATE: 2022-05-26
|
||||||
// VERSION: 0.1.0
|
// VERSION: 0.1.1
|
||||||
// PURPOSE: Arduino library for SIMON
|
// PURPOSE: Arduino library for SIMON
|
||||||
// URL: https://github.com/RobTillaart/SIMON
|
// URL: https://github.com/RobTillaart/SIMON
|
||||||
|
|
||||||
|
|
||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
|
|
||||||
#define SIMON_LIB_VERSION (F("0.1.0"))
|
#define SIMON_LIB_VERSION (F("0.1.1"))
|
||||||
|
|
||||||
#define SIMON_MAXSIZE 10
|
#define SIMON_MAXSIZE 10
|
||||||
|
|
||||||
|
|
||||||
class SIMON
|
class SIMON
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -46,6 +46,12 @@ unittest_teardown()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
unittest(test_constants)
|
||||||
|
{
|
||||||
|
assertEqual(10, SIMON_MAXSIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
unittest(test_constructor)
|
unittest(test_constructor)
|
||||||
{
|
{
|
||||||
SIMON simon;
|
SIMON simon;
|
||||||
|
Loading…
Reference in New Issue
Block a user