0.1.1 SIMON

This commit is contained in:
rob tillaart 2022-11-24 14:35:07 +01:00
parent b18b0873a8
commit 8cea2ae13f
7 changed files with 56 additions and 9 deletions

View 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

View 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

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/SIMON"
},
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=SIMON
version=0.1.0
version=0.1.1
author=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.

View File

@ -2,12 +2,9 @@
// FILE: simon.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-05-26
// VERSION: 0.1.0
// VERSION: 0.1.1
// PURPOSE: Arduino library for SIMON
// URL: https://github.com/RobTillaart/SIMON
//
// HISTORY:
// 0.1.0 2022-05-26 initial version
#include "simon.h"
@ -115,5 +112,5 @@ uint8_t SIMON::maxSize()
}
// -- END OF FILE --
// -- END OF FILE --

View File

@ -3,17 +3,18 @@
// FILE: simon.h
// AUTHOR: Rob Tillaart
// DATE: 2022-05-26
// VERSION: 0.1.0
// VERSION: 0.1.1
// PURPOSE: Arduino library for SIMON
// URL: https://github.com/RobTillaart/SIMON
#include "Arduino.h"
#define SIMON_LIB_VERSION (F("0.1.0"))
#define SIMON_LIB_VERSION (F("0.1.1"))
#define SIMON_MAXSIZE 10
class SIMON
{
public:

View File

@ -46,6 +46,12 @@ unittest_teardown()
}
unittest(test_constants)
{
assertEqual(10, SIMON_MAXSIZE);
}
unittest(test_constructor)
{
SIMON simon;