Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 11 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
2 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
30 lignes
Copier tout
2 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
30 lignes
Copier tout
void testSet(void){
void testSet(void){
SETBIT(I2C_PORT,I2C_SDA);
SETBIT(I2C_PORT,I2C_SDA);
}
}
void testClr(void){
void testClr(void){
CLEARBIT(I2C_PORT,I2C_SDA);
CLEARBIT(I2C_PORT,I2C_SDA);
}
}
int main(void)
int main(void)
{
{
//init();
//init();
DDRB = 0x18;
DDRB = 0x18;
for(;;)
for(;;)
{
{
if (bit_is_clear(PINB, PB0)){
if (bit_is_clear(PINB, PB0)){
_delay_ms(SM_DELAY); //prell delay
_delay_ms(SM_DELAY); //prell delay
Copier
Copié
Copier
Copié
testClr();
//
testClr();
//
CLEARBIT(I2C_PORT,I2C_SDA);
CLEARBIT(I2C_PORT,I2C_SDA);
while(bit_is_clear(PINB, PB0)); //until button is released
while(bit_is_clear(PINB, PB0)); //until button is released
_delay_ms(SM_DELAY); //prell delay
_delay_ms(SM_DELAY); //prell delay
Copier
Copié
Copier
Copié
testSet();
//
testSet();
//
SETBIT(I2C_PORT,I2C_SDA);
SETBIT(I2C_PORT,I2C_SDA);
}
}
}
}
return 0;
return 0;
}
}
Différences enregistrées
Texte d'origine
Ouvrir un fichier
void testSet(void){ SETBIT(I2C_PORT,I2C_SDA); } void testClr(void){ CLEARBIT(I2C_PORT,I2C_SDA); } int main(void) { //init(); DDRB = 0x18; for(;;) { if (bit_is_clear(PINB, PB0)){ _delay_ms(SM_DELAY); //prell delay testClr(); //CLEARBIT(I2C_PORT,I2C_SDA); while(bit_is_clear(PINB, PB0)); //until button is released _delay_ms(SM_DELAY); //prell delay testSet(); //SETBIT(I2C_PORT,I2C_SDA); } } return 0; }
Texte modifié
Ouvrir un fichier
void testSet(void){ SETBIT(I2C_PORT,I2C_SDA); } void testClr(void){ CLEARBIT(I2C_PORT,I2C_SDA); } int main(void) { //init(); DDRB = 0x18; for(;;) { if (bit_is_clear(PINB, PB0)){ _delay_ms(SM_DELAY); //prell delay //testClr(); CLEARBIT(I2C_PORT,I2C_SDA); while(bit_is_clear(PINB, PB0)); //until button is released _delay_ms(SM_DELAY); //prell delay //testSet(); SETBIT(I2C_PORT,I2C_SDA); } } return 0; }
Trouver la différence