speichern
This commit is contained in:
parent
86da74bed0
commit
8e785e4b70
15 changed files with 443 additions and 282 deletions
|
@ -13,7 +13,7 @@ void testBEBA0(void)
|
|||
{
|
||||
for(uint8_t i = 0; i < 9; i++)
|
||||
{
|
||||
beba0.writePortA(_BV(i));
|
||||
((MCP23S17*) &beba0)->writePortA(_BV(i));
|
||||
|
||||
if(i < 8)
|
||||
_delay_ms(200);
|
||||
|
@ -24,7 +24,7 @@ void testBEBA1(void)
|
|||
{
|
||||
for(uint8_t i = 0; i < 9; i++)
|
||||
{
|
||||
beba1.writePortA(_BV(i));
|
||||
((MCP23S17*) &beba1)->writePortA(_BV(i));
|
||||
|
||||
if(i < 8)
|
||||
_delay_ms(200);
|
||||
|
@ -35,22 +35,22 @@ void testDAC0(void)
|
|||
{
|
||||
for(uint16_t i = 0; i < 1024; i++)
|
||||
{
|
||||
dac0.setValue(i);
|
||||
((TLC5615*) &dac0)->setValue(i);
|
||||
_delay_ms(1);
|
||||
}
|
||||
_delay_ms(100);
|
||||
dac0.setValue(0);
|
||||
((TLC5615*) &dac0)->setValue(0);
|
||||
}
|
||||
|
||||
void testDAC1(void)
|
||||
{
|
||||
for(uint16_t i = 0; i < 1024; i++)
|
||||
{
|
||||
dac1.setValue(i);
|
||||
((TLC5615*) &dac1)->setValue(i);
|
||||
_delay_ms(1);
|
||||
}
|
||||
_delay_ms(100);
|
||||
dac1.setValue(0);
|
||||
((TLC5615*) &dac1)->setValue(0);
|
||||
}
|
||||
|
||||
void testMirror()
|
||||
|
@ -61,9 +61,9 @@ void testMirror()
|
|||
// Endlosschleife
|
||||
while(1)
|
||||
{
|
||||
dac0.setValue(adu.getValue(0));
|
||||
dac1.setValue(adu.getValue(1));
|
||||
beba0.writePortA(beba0.readPortB());
|
||||
beba1.writePortA(sw.readPortB());
|
||||
((TLC5615*) &dac0)->setValue(((ADU*) &adu)->getValue(0));
|
||||
((TLC5615*) &dac1)->setValue(((ADU*) &adu)->getValue(1));
|
||||
((MCP23S17*) &beba0)->writePortA(((MCP23S17*) &beba0)->readPortB());
|
||||
((MCP23S17*) &beba1)->writePortA(((MCP23S17*) &sw)->readPortB());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue