This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pic16f877a.h> | |
#include "uart.h" | |
#include "eeprom.h" | |
/* start the main program */ | |
int main() | |
{ | |
unsigned char eeprom_address = 0, write_char, read_char; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************//** | |
* @file system_LPC17xx.c | |
* @brief CMSIS Cortex-M3 Device Peripheral Access Layer Source File | |
* for the NXP LPC17xx Device Series | |
* @version V1.03 | |
* @date 07. October 2009 | |
* | |
* @note | |
* Copyright (C) 2009 ARM Limited. All rights reserved. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "rtc.h" | |
#include "lcd.h" | |
int main() | |
{ | |
rtc_t rtc; | |
/*Connect RS->P2.0, RW->P2.1, EN->P2.2 and data bus to P2.4 to P2.7*/ | |
LCD_SetUp(P2_0,P2_1,P2_2,P_NC,P_NC,P_NC,P_NC,P2_4,P2_5,P2_6,P2_7); | |
LCD_Init(2,16); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************************************** | |
ExploreEmbedded Copyright Notice | |
**************************************************************************************************** | |
* File: main.c | |
* Version: 16.0 | |
* Author: ExploreEmbedded | |
* Website: http://www.exploreembedded.com/wiki | |
* Description: This file contains the sample program to read the GPS data and display it on LCD | |
This code has been developed and tested on ExploreEmbedded boards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg51.h> | |
#define LEDs P0 | |
unsigned char receivedChar=0; | |
unsigned char count=0; | |
unsigned char ti_flag=0; | |
void ext_int_0() interrupt 0 | |
{ | |
count++; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<lpc17xx.h> | |
/* Configure the data bus and Control bus as per the hardware connection */ | |
#define LcdDataBusPort LPC_GPIO1->FIOPIN | |
#define LcdControlBusPort LPC_GPIO2->FIOPIN | |
#define LcdDataBusDirnReg LPC_GPIO1->FIODIR | |
#define LcdCtrlBusDirnReg LPC_GPIO2->FIODIR | |
#define LCD_D4 24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
String Arsp, Grsp; | |
SoftwareSerial gsm(10, 11); // RX, TX | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
Serial.println("Testing GSM SIM800L"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "adc.h" | |
#include "uart.h" | |
#include "stdutils.h" | |
int main() | |
{ | |
int adc0,adc1,adc2,adc3,adc4; | |
SystemInit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "gpio.h" | |
#include "pwm.h" | |
#include "delay.h" | |
#define CYCLE_TIME 255 | |
#define PWM_PIN 29 | |
/* start the main program */ | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int color[8] = {COLOR_NONE,COLOR_BLUE,COLOR_GREEN,COLOR_CYAN,COLOR_RED,COLOR_YELLOW,COLOR_MAGNETO,COLOR_WHITE}; | |
for(int i=0;i<8;i++) | |
{ | |
rgbWrite(color[i]); | |
delay(1000); |