| Electronic Components Datasheet Search |
|
DFR0259 Datasheet(PDF) 5 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0259 Datasheet(HTML) 5 Page - DFROBOT |
|
5 / 6 page ![]() # This sample codes is for testing the RS485 shiled(manual transmission mode) . # EN=2; # Editor : YouYou # Date : 2013.9.16 # Ver : 0.1 # Product: RS485 shield # SKU : DFR0259 */ int led = 13; int EN = 2; //Definition RS485 shield enable terminal (the 2nd digital IO po rts), //high for the sending state, the low level of receiving state void setup() { Serial.begin(9600); pinMode(led,OUTPUT); pinMode(EN,OUTPUT); } void loop() { int temp; digitalWrite(EN,LOW); //Enable low, RS485 shield waiting to receive data if(Serial.available()) { temp=Serial.read(); if(temp=='V') { digitalWrite(led,1-digitalRead(led)); digitalWrite(EN,HIGH); //Enable high, RS485 shield waiting to transm it data Serial.println("OK"); delay(10); //Delay for some time, waiting for data transmitted } } |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |