Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Code_APP3_R by
IO_p15.cpp
00001 #include "IO_p15.h" 00002 00003 DigitalIn btn(p15); 00004 bool bLastState = false; 00005 00006 //--------------------------------------------------------------// 00007 // Fonction pour l'envoie de données pour le bouton 00008 // Testé et fonctionnel 00009 //--------------------------------------------------------------// 00010 void func_button(CArray* DATA_TO_SEND) 00011 { 00012 if (!bLastState == btn) 00013 { 00014 DATA_TO_SEND->_ptr = new char[1]; 00015 DATA_TO_SEND->_ptr[0] = btn; 00016 DATA_TO_SEND->size = 1; 00017 } 00018 bLastState = btn; 00019 } 00020 //--------------------------------------------------------------//
Generated on Mon Jul 18 2022 14:56:15 by
