Thiago . / Mbed 2 deprecated exercicios

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cook.cpp Source File

cook.cpp

00001 #include "cook.h"
00002 
00003 uint32_t cook::getHowWellCooks(void){
00004     
00005     return howWellCooks;
00006     
00007     }
00008     
00009 void cook::setHowWellCooks(uint32_t newSkill){
00010     
00011     howWellCooks = newSkill;
00012     
00013     }
00014 
00015 void cook::makeBanana(Serial* serialPort, fruits* something[]){
00016     
00017     for(uint32_t i  = 0;i<10;i++){
00018     
00019     serialPort->printf("the number of bananas %d",something[i]->getWeight());
00020     wait(0.1);
00021     
00022         }
00023     }