Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Add Devices directory with stub of LiquidCrystal_TC #6

Merged
merged 3 commits into from
Nov 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .arduino-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ platforms:
features:
defines:
- __AVR_ATmega2560__
# added this line
- ARDUINO_CI
warnings:
flags:

unittest:
platforms:
- mega2560

libraries:
- "LiquidCrystal"

compile:
platforms:
- mega2560
libraries:
- "LiquidCrystal"
7 changes: 6 additions & 1 deletion .github/workflows/Arduino-CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- run: |
bundle install

# Installing libraries needed for this project
- name: Install libraries
run: |
./scripts/install_libraries.sh

# Finally, run the tests
- run: |
bundle exec arduino_ci_remote.rb --skip-compilation
bundle exec arduino_ci_remote.rb
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
gem 'arduino_ci'
gem 'arduino_ci', git: 'https://github.com/ianfixes/arduino_ci.git', branch: '2020-10-16_suggestions'
10 changes: 0 additions & 10 deletions examples/Blink/Blink.ino

This file was deleted.

10 changes: 10 additions & 0 deletions examples/TankController/TankController.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

#include "TankControllerLib.h"
TankControllerLib *tank = TankControllerLib::instance();

void setup() {
tank->setup();
}
void loop() {
tank->loop();
}
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ author=James Foster <[email protected]>
maintainer=James Foster <[email protected]>
sentence=Software for the Arduino that controls pH and temperature in the Ocean Acidification project.
paragraph=
category=Device Congtrol
category=Device Control
url=https://github.com/Open-Acidification/TankControllerLib
architectures=*
architectures=avr
9 changes: 9 additions & 0 deletions scripts/install_libraries.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# set up directories
bundle exec ensure_arduino_installation.rb

# get custom version of LiquidCrystal
git clone https://github.com/Arduino-CI/LiquidCrystal.git
mv LiquidCrystal $(bundle exec arduino_library_location.rb)

1 change: 1 addition & 0 deletions src/Devices/LiquidCrystal_TC.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "LiquidCrystal_TC.h"
19 changes: 19 additions & 0 deletions src/Devices/LiquidCrystal_TC.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <Arduino.h>
#ifdef ARDUINO_CI
#include <LiquidCrystal_CI.h>
#else
#include <LiquidCrystal.h>
#endif

class LiquidCrystal_TC {
private:
const int RS = 24, EN = 22, D4 = 26, D5 = 28, D6 = 30, D7 = 32;
LiquidCrystal* pLCD; // (RS, EN, D4, D5, D6, D7);

public:
LiquidCrystal_TC();
~LiquidCrystal_TC();
void clear();
void setCursor();
void print();
};