<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=CC2540</id>
	<title>CC2540 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=CC2540"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=CC2540&amp;action=history"/>
	<updated>2026-07-22T00:12:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=CC2540&amp;diff=30621&amp;oldid=prev</id>
		<title>Chao at 08:55, 15 April 2021</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=CC2540&amp;diff=30621&amp;oldid=prev"/>
		<updated>2021-04-15T08:55:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Schematic ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:CC40 BLE Serial Data Breakout Board (Slave, CC2540 CC2541) shematic.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
== Arduino Demo Code ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Arduino&amp;quot;&amp;gt;&lt;br /&gt;
//arduino uno wiring&lt;br /&gt;
//BLE4.0   UNO&lt;br /&gt;
//VCC-----&amp;gt;3.3V&lt;br /&gt;
//GND-----&amp;gt;GND&lt;br /&gt;
//EN------&amp;gt;GND&lt;br /&gt;
//RX------&amp;gt;TX&lt;br /&gt;
//TX------&amp;gt;RX&lt;br /&gt;
//BCTS(NC)&lt;br /&gt;
//BRTS----&amp;gt;GND&lt;br /&gt;
&lt;br /&gt;
int LED = 13;&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
	pinMode(LED,OUTPUT);&lt;br /&gt;
  	Serial.begin(115200);		// baudrate 115200&lt;br /&gt;
  	while (!Serial); // wait for serial port to connect. Needed for Leonardo only&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  if (Serial.available() &amp;gt; 0) {&lt;br /&gt;
    char inChar = (char)Serial.read(); 	//read serial port data read serial port data&lt;br /&gt;
    Serial.write(inChar);				//send back received data, if the phone app can read the return data means the communication is working well&lt;br /&gt;
&lt;br /&gt;
    if(inChar == 'B'){&lt;br /&gt;
    	digitalWrite(LED,HIGH);			//led on when press button B&lt;br /&gt;
    }&lt;br /&gt;
    else if(inChar == 'R'){&lt;br /&gt;
    	digitalWrite(LED,LOW);			//led off when press button R&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: TI Bluetooth ]]&lt;br /&gt;
[[category: Bluetooth 4.0]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>