드래그 앤 드롭으로 즐겨찾기 아이콘 위치 수정이 가능합니다.
게시물ID : voca_4487 짧은주소 복사하기
작성자 : 간지늅늅이
추천 : 0
조회수 : 792회
댓글수 : 0개
등록시간 : 2012/06/05 15:38:16
oscilloscope.h enum{ NREADINGS = 1, DEFAULT_INTERVAL=256, AM_OSCILLOSCOPE = 147 }; typedef nx_struct oscilloscope { nx_uint16_t version; nx_uint16_t interval; nx_uint16_t id; nx_uint16_t count; nx_uint16_t readings[NREADINGS]; } oscilloscope_t; ----------------------- LightToRadioApp.nc #include "Oscilloscope.h" configuration LightToRadioAppC{ } implementation{ components MainC, LedsC; components LightToRadioC as App; components new TimerMilliC() as Timer0; components ActiveMessageC; components new AMSenderC(AM_OSCILLOSCOPE); components new LightToVoltageC() as Sensor; App.Boot -> MainC; App.Leds -> LedsC; App.Timer0 -> Timer0; App.SplitControl -> ActiveMessageC; App.Packet -> AMSenderC; App.AMSend -> AMSenderC; App.Read-> Sensor; }
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.
새로운 댓글이 없습니다.