GithubHelp home page GithubHelp logo

nickyheuperman / zigbee_webee_cc2530 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomxue/zigbee_webee_cc2530

0.0 0.0 0.0 1.61 MB

TI official Zstack and Webee example codes, just for learning

C 85.78% Objective-C 0.21% C++ 13.69% Shell 0.18% JavaScript 0.13%

zigbee_webee_cc2530's Introduction

Code examples:

    (1) light_switch: Webee book page 114~129, and switch between below codes for both ends.
        //appSwitch();      //节点为按键S1      P0_0
        appLight();         //节点为指示灯LED1   P1_0

    (2) per_test: Webee book page 130~145, and switch between below codes for both ends.
        //#define MODE_SEND   1

        //看MODE_SEND,go to definition,找到定义的地方
        //把那行代码注释掉就是接收部分,不注释就是发送
        #ifdef MODE_SEND
            appMode = MODE_TX;
        #else
            appMode = MODE_RX;
        #endif  
	
	(3) SampleApp: UART print out of one kit, page 159~171, one kit is used
		<1> Select CoordinatorEB in IAR
		<2> Use IAR "Download and Debug", and then check the UART monitor's output
		
	(4) SampleApp: key press experiment, page 172~187, one kit is used
		<1> Select CoordinatorEB in IAR
		<2> Use IAR "Download and Debug", and then check the UART monitor's output
		<3> IAR settings change:
		IAR -> Project -> Options -> Linker -> Extra Options:
		-C $PROJ_DIR$\..\..\..\Libraries\TI2530DB\bin\Router-Pro.lib
		-C $PROJ_DIR$\..\..\..\Libraries\TI2530DB\bin\Security.lib
		-C $PROJ_DIR$\..\..\..\Libraries\TIMAC\bin\TIMAC-CC2530.lib
		
		should be changed to like this, and  then works.
		
		-C C:\ti\ZStack-CC2530-2.5.1a\Projects\zstack\Libraries\TI2530DB\bin\Router-Pro.lib
		-C C:\ti\ZStack-CC2530-2.5.1a\Projects\zstack\Libraries\TI2530DB\bin\Security.lib
		-C C:\ti\ZStack-CC2530-2.5.1a\Projects\zstack\Libraries\TIMAC\bin\TIMAC-CC2530.lib

		<4> The key is mapped to P0.4, and we should solder a flying wire on it, then touch the wire to GND to trigger the key event.
		
		<4> To generate hex(if not use above "Download and Debug" method), please refer to this link:
			http://blog.csdn.net/liyvhg/article/details/6455403
			And I have save it to my Wiznote.
			

zigbee_webee_cc2530's People

Contributors

tomxue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.