Mini projet LOO

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Home du projet

Revision:
7:4b283e36b147
Parent:
5:d6b0bf27bac6
Child:
9:6f3d8b714a59
--- a/src/cLed.cpp	Thu Mar 31 11:24:34 2016 +0000
+++ b/src/cLed.cpp	Fri Apr 01 14:30:30 2016 +0000
@@ -4,63 +4,63 @@
 
 // CONSTRUCTEURS
 
-cLed::cLed(){
-  _positionX = 0;
-  _positionY = 0;
-  _couleur = 0x00;
+cLed::cLed() {
+	_positionX = 0;
+	_positionY = 0;
+	_couleur = 0x00;
 }
 
-cLed::cLed(unsigned char x, unsigned char y){
-  _positionX = x;
-  _positionY = y;
+cLed::cLed(unsigned char x, unsigned char y) {
+	_positionX = x;
+	_positionY = y;
 }
 
-cLed::cLed(unsigned char x, unsigned char y, unsigned char c){
-  _positionX = x;
-  _positionY = y;
-   _couleur = c;
+cLed::cLed(unsigned char x, unsigned char y, unsigned char c) {
+	_positionX = x;
+	_positionY = y;
+	_couleur = c;
 }
 
 // GETTERS
 
-unsigned char cLed::getPositionX(){
-  return _positionX;
+unsigned char cLed::getPositionX() {
+	return _positionX;
 }
-unsigned char cLed::getPositionY(){
-  return _positionY;
+unsigned char cLed::getPositionY() {
+	return _positionY;
 }
 
-unsigned char cLed::getCouleur(){
-  return _couleur;
+unsigned char cLed::getCouleur() {
+	return _couleur;
 }
 
 // SETTER
 
-void cLed::setPositionX(unsigned char x){
-  _positionX = x;
+void cLed::setPositionX(unsigned char x) {
+	_positionX = x;
 }
 
-void cLed::setPositionY(unsigned char y){
-  _positionY = y;
+void cLed::setPositionY(unsigned char y) {
+	_positionY = y;
 }
 
-void cLed::allumer(unsigned char c){
-    _couleur = c;
-    /*DigitalOut cs(p14);
-    SPI point(p11,p12,p13);
-    cs=0;
-    wait(0.5);
-    for(char i=0; i<_positionX; i++)
-    {
-        for(char j=0; j<_positionY; j++)
-        {
-            point.write(c);
-        }
-    }
-    wait(0.5);
-    cs=1;*/
+void cLed::allumer(unsigned char c) {
+	_couleur = c;
+	/*DigitalOut cs(p14);
+	 SPI point(p11,p12,p13);
+	 cs=0;
+	 wait(0.5);
+	 for(char i=0; i<_positionX; i++)
+	 {
+	 for(char j=0; j<_positionY; j++)
+	 {
+	 point.write(c);
+	 }
+	 }
+	 wait(0.5);
+	 cs=1;*/
 }
 
-void cLed::eteindre(){
-  _couleur = LED_NOIR;
+void cLed::eteindre() {
+	_couleur = LED_NOIR;
 }