Code Monkey home page Code Monkey logo

Comments (4)

o0Zz avatar o0Zz commented on May 28, 2024

+1, one sample code would be nice.

Here is what I wrote, but my code is locked in cc1100_sent_packet function.

BR

#include "cc1100_arduino.h"

CC1100 cc1101;
uint8_t Rx_fifo[10];
uint8_t Rx_addr, Tx_addr, Pktlen, Lqi;
int8_t Rssi_dbm;
uint8_t Tx_fifo[20];
uint8_t My_addr;
uint8_t Patable[8];

void setup()
{
  Serial.begin(38400);
  Serial.println("start");

  uint8_t theRet = cc1101.cc1100_init();
  Serial.print("initializing: ");
  Serial.println(theRet);

  theRet = cc1101.cc1100_wakeup();
  Serial.print("wakeup: ");
  Serial.println(theRet);
}

void loop()
{

  while(1)
  {
    Serial.print("send: ");
    uint8_t buf[]={0xFE, 0xED, 0xBA, 0xBE};
    uint8_t theRet = cc1101.cc1100_sent_packet(0x00000000, 0x00000001, buf, sizeof(buf));
    Serial.println(theRet);
    delay(1000);
  }
}

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on May 28, 2024

Did you flash the eeprom file to the arduino first?

Am 21.03.2016 um 21:59 schrieb o0Zz [email protected]:

+1, one sample code would be nice.

Here is what I wrote, but my code is locked in cc1100_sent_packet function.

BR

#include "cc1100_arduino.h"

CC1100 cc1101;
uint8_t Rx_fifo[10];
uint8_t Rx_addr, Tx_addr, Pktlen, Lqi;
int8_t Rssi_dbm;
uint8_t Tx_fifo[20];
uint8_t My_addr;
uint8_t Patable[8];

void setup()
{
Serial.begin(38400);
Serial.println("start");

uint8_t theRet = cc1101.cc1100_init();
Serial.print("initializing: ");
Serial.println(theRet);

theRet = cc1101.cc1100_wakeup();
Serial.print("wakeup: ");
Serial.println(theRet);
}

void loop()
{

while(1)
{
Serial.print("send: ");
uint8_t buf[]={0xFE, 0xED, 0xBA, 0xBE};
uint8_t theRet = cc1101.cc1100_sent_packet(0x00000000, 0x00000001, buf, sizeof(buf));
Serial.println(theRet);
delay(1000);
}
}

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

from cc1101.

o0Zz avatar o0Zz commented on May 28, 2024

Not at all, however i can see some default setting for eeprom. I supposed default settings should works, isn't it ?

I'm interrested having this file. can you share it ?

Thanks.

from cc1101.

SpaceTeddy avatar SpaceTeddy commented on May 28, 2024

examples and eeprom utility is available now

from cc1101.

Related Issues (20)

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.