From f254c10b437a4a4a118a52b24cdbc288d935c026 Mon Sep 17 00:00:00 2001
From: qqqlab <46283638+qqqlab@users.noreply.github.com>
Date: Sat, 14 Nov 2020 03:56:03 +0100
Subject: [PATCH] Delete Dimmer.ino
---
Examples/Dimmer/Dimmer.ino | 64 ----------------------------------------------------------------
1 file changed, 0 insertions(+), 64 deletions(-)
delete mode 100644 Examples/Dimmer/Dimmer.ino
diff --git a/Examples/Dimmer/Dimmer.ino b/Examples/Dimmer/Dimmer.ino
deleted file mode 100644
index 70c4697..0000000
--- a/Examples/Dimmer/Dimmer.ino
+++ /dev/null
@@ -1,64 +0,0 @@
-/*###########################################################################
-DALI Interface Demo
-
-Dimms all lights connected to the DALI bus up and down
-
-Works with Arduino ATMEGA328 + Mikroe DALI Click
-
-----------------------------------------------------------------------------
-Changelog:
-2020-11-08 Created & tested on ATMega328 @ 8Mhz
-----------------------------------------------------------------------------
- Dimmer.ino - copyright qqqlab.com / github.com/qqqlab
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-###########################################################################*/
-
-#define DALI_OUTPUT_PIN 3
-#define DALI_INPUT_PIN 4
-
-#include "qqqDali_ATMega328.h"
-
-Dali_ATMega328 dali;
-
-void setup() {
- Serial.begin(115200);
- Serial.println("DALI Dimmer Demo");
-
- //start the DALI interfaces
- //arguments: tx_pin, rx_pin (negative values disable transmitter / receiver)
- //Note: the receiver pins should be on different PCINT groups, e.g one
- //receiver on pin0-7 (PCINT2) one on pin8-13 (PCINT0) and one on pin14-19 (PCINT1)
- dali.begin(DALI_OUTPUT_PIN, DALI_INPUT_PIN);
-}
-
-#define MIN_LEVEL 100 //most LED Drivers do not get much lower than this
-int16_t level = 254; //254 is max level, 1 is min level (if driver supports it), 0 is off
-int8_t level_step = 4;
-
-void loop() {
- Serial.print("set level: ");
- Serial.println(level);
- dali.set_level(level);
-
- level+=level_step;
- if(level>=254) {
- level = 254;
- level_step = -level_step;
- }
- if(level