
-----------------------------------
cubera
Sun Apr 29, 2012 11:47 pm

Can anyone confirm this language?
-----------------------------------
I'm new to programming but i have experience with java and turing and im planning to learn either C, C++, C# next. However i have question regarding a source code i found from a project from inscrutables about a led coffee table, i just cant tell what language it is. To me it looks like C#, maybe C? im not sure so i need some help from an expert or perhaps someone who has experience with these programming languages to verify the language this person has used.
Also im sorry if this is the wrong section.



Heres the code:

/***                   
PIN ASSIGNMENTS ON ATMEGA48

PC6 (PCINT14/RESET)            
PC5 (ADC5/SCL/PCINT13)            // I2C Clock input
PC4 (ADC4/SDA/PCINT12)            // I2C Data input
PC3 (ADC3/PCINT11)                    //Sensor 4 IR Receiver
PC2 (ADC2/PCINT10)                    //Sensor 3 IR Receiver
PC1 (ADC1/PCINT9)                      //Sensor 2 IR Receiver
PC0 (ADC0/PCINT8)                      //Sensor 1 IR Receiver

PB7 (PCINT7/XTAL2/TOSC2)         //IR 4 Trigger
PB6 (PCINT6/XTAL1/TOSC1)         //IR 3 Trigger
PB5 (SCK/PCINT5)                           //IR 2 Trigger
PB4 (MISO/PCINT4)                        //IR 1 Trigger
PB3 (MOSI/OC2A/PCINT3)            //PWM 3
PB2 (SS/OC1B/PCINT2)           
PB1 (OC1A/PCINT1)               
PB0 (PCINT0/CLKO/ICP1)           

PD0 (PCINT16/RXD)                
PD1 (PCINT17/TXD)                
PD2 (PCINT18/INT0)                
PD3 (PCINT19/OC2B/INT1)         //PWM 4
PD4 (PCINT20/XCK/T0)            
PD5 (PCINT21/OC0B/T1)             //PWM 2
PD6 (PCINT22/OC0A/AIN0)         //PWM 1
PD7 (PCINT23/AIN1)             
***/

#define IR_1_ON PORTB |= (1