# DAISY-5 push-buttons add-on module

<span class="abstract">
DAISY-5 is an 8 push-button module intended for educational and experimental purposes
</span>

Each button is wired directly on a single GPIO line. In normal conditions the GPIO line is pulled down (logic 0) through a 10 KOhm resistor. Pressing down the button the GPIO line is closed to +3.3V (logic 1) by a 1.5 KOhm resistor.  

<img src="./daisy-5.jpg"/>

##Python code examples

These examples show how to read the Daisy-5 buttons state with the module plugged in the [Terra board](/terra) **D11** daisy connector. 

The same examples can work using the following Daisy connectors with simple changes at the source:

| Terra | FOXG20 | 
|-------|--------|
|  D11  | D2     |
|  D12  | D5     |

<br>

* Read the pushbutton state using the polling way: @pg='python/daisy5/polling.py' 
* Catch the pushbutton state using the interrupt mode: @pg='python/daisy5/interrupt.py' 

@note The edge conditions **falling** and **rising** are managed just on the Aria G25/Terra. On the FOX Board G25 only the **both** edge works.  

#Schematic

* [Schematic in pdf format](http://terzo.acmesystems.it/download/schematics/schematic_daisy5.pdf)


@shop='DAISY-5'
@shop='DAISY-11'
@shop='FLAT-20CM'


