Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
11 years ago
Diff never expires
Clear
Export
Share
Explain
2 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
30 lines
Copy
2 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
30 lines
Copy
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
Copy
Copied
Copy
Copied
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
Copy
Copied
Copy
Copied
testSet();
//
testSet();
//
SETBIT(I2C_PORT,I2C_SDA);
SETBIT(I2C_PORT,I2C_SDA);
}
}
}
}
return 0;
return 0;
}
}
Saved diffs
Original text
Open file
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; }
Changed text
Open file
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; }
Find difference