Professional Documents
Culture Documents
ReadRom
USB
USB . USB . USB . USB . available read send sendint
Chuleta de Pingino
Nelo R. Tovar
LCD
lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd lcd . autoscroll . begin . blink . clear . command . cursor . display . home . init . leftToRight . noAutoscroll . noBlink . noCursor . noDisplay . print . printFloat . printNumber . rightToLeft . scrollDisplayLeft . scrollDisplayRight . send . setCursor . write
Protoboard
http://www.pinguino.org.ve
@pinguinove en Identi.ca y Twitter
Directivas #
# define constante valor # d e f i n e macro f u n c i o n ( ) # i n c l u d e < l i b r e r i a . h> / / p r e c o m p i l a c i o n # ifndef inicio condicional # endif fin condicional
PWM
PWM. s e t d u t y c y c l e PWM. s e t f r e q u e n c y PWM. s e t p e r c e n t d u t y c y c l e
Sound
Sound Play
Estructura de Control
if (a < b) { } else { } if (a < b) { } else if ( a > b) { }
Servo
servo servo servo servo servo servo . attach . detach . read . setMaximumPulse . setMinimumPulse . write
switch ( variable ) { case 1 : break ; case 2 : break ; default : } f o r ( i = 0 ; i <= a ; i + + ) { b = b + i; } while ( a < b ) { } do { } while ( a < b ) ; continue break aplicable a : do / f o r / w h i l e
s h o r t ( 32 ,768 a 3 2 , 7 6 7 ) unsigned short (0 a 65 ,535) i n t ( 32 ,768 a 3 2 , 7 6 7 ) unsigned i n t (0 a 65 ,535) long ( 2 ,147 ,483 a 2 , 1 4 7 , 4 8 3 , 6 4 7 ) unsigned long (0 a 4 ,294 ,967 ,295) f l o a t , d o u b l e , b y t e , word
Acceso a Punteros
& Refiere Direccion R e f i e r e Contenido
Tipo Compuestos
struct registro { t i p o campo1 ; t i p o campoN ; } variable ; union d a t o s { tipo1 dato1 ; tipo2 dato2 ; } variable ; t y p e d e f t i p o nuevoTipo ;
Wiring (Base)
abs analogRead analogWrite cos delay delayMicroseconds digitalRead digitalWrite millis pinMode pow randomSeed sin sqrt tan
Arreglos (Vectores)
i n t Datos [ 5 ] ; i n t Datos [ ] = { 5 , 6 , 7 } ; int datos [3] = {8 , 9 , 1 0 } ;
Cadena de Caracteres
char char char char char Cad [ 6 ] ; Cad [ ] = c a d e n a ; Cad [ 4 ] = u s b ; Cad [ 1 0 ] = c a d e n a ; Cad [ 2 ] = { u , \ n } ;
Interrupt
UserInterrup
DS18B20 (I2C)
DS18B20 . C o n f i g u r e DS18B20 . c r c DS18B20 . F i n d
Constantes