libpropeller
Making PropellerGCC Easier
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
libpropeller
libpropeller
elum
elum.test.h
Go to the documentation of this file.
1
#include "unity.h"
2
#include "
elum.h
"
3
#include "c++-alloc.h"
4
//#include <stdio.h>
5
6
const
int
kPIN_LEDR
= 5;
7
const
int
kPIN_MAX8819_EN123
= 6;
8
const
int
kPIN_LEDG
= 7;
9
const
int
kPIN_BUTTON
= 8;
10
11
12
Elum
*
sut
;
13
14
class
UnityTests {
15
public
:
16
17
static
void
setUp(
void
) {
18
sut =
new
Elum
(
kPIN_LEDR
,
kPIN_LEDG
,
kPIN_BUTTON
);
19
}
20
21
static
void
tearDown(
void
) {
22
delete
sut
;
23
}
24
25
//static void test_Pattern(void){
26
// sut->Pattern(Elum::kJitterFast);
27
//
28
//
29
//}
30
31
static
void
test_LEDs(
void
) {
32
sut->
On
(
Elum::RED
);
33
// waitcnt(CLKFREQ*2 + CNT);
34
sut->
Fade
(10);
35
// waitcnt(CLKFREQ*2 + CNT);
36
sut->
Pattern
(
Elum::kManyFast
);
37
// waitcnt(CLKFREQ*2 + CNT);
38
TEST_IGNORE_MESSAGE(
"Must check results manually."
);
39
}
40
41
};
Generated on Fri Oct 25 2013 23:41:46 for libpropeller by
1.8.4