ဝီကီပီးဒီးယား:Sandbox
![]() | ဝီကီပီးဒီးယား၏ sandbox စာမျက်နှာက ကြိုဆိုပါတယ်။ Sandbox စာမျက်နှာများသည် ဝီကီပီးဒီးယား စာမျက်နှာများ တည်းဖြတ်မှု လုပ်ငန်းစဉ်များကို အတွေ့အကြုံရနိုင်ရန် စမ်းသပ်ခွင့်ပေးထားသည့် နေရာဖြစ်သည်။ ဤ sandbox ကို တည်းဖြတ်ရန်အတွက် ဤနေရာ သို့မဟုတ် ဤစာမျက်နှာထိပ်ရှိ "ပြင်ဆင်ရန်" tab ကို နှိပ်ပါ။ ပြင်ဆင်မှုများ ပြုလုပ်ပြီးပါက "ဤစာမျက်နှာကို သိမ်းရန်" ခလုတ်ကို နှိပ်ပါ။ ပြင်ဆင်ထားမှုများ နမူနာ ကြည့်ရှုလိုပါက "နမူနာပြရန်" ကို နှိပ်ကာ ကြည့်ရှုနိုင်ပါသည်။ ဤစာမျက်နှာကို ပုံမှန် ရှင်းလင်းမှုပြုလုပ်ပါသည်။ အခြားသော အသုံးပြုသူများသည်လည်း ဤစာမျက်နှာတွင် စမ်းသပ်တည်းဖြတ်မှုများ ပြုလုပ်ကြသည့်အတွက် ဤနေရာတွင် သင်ရေးသားသမျှသည် အမြဲတမ်း ရှိမနေပါ။ ရှင်းလင်းပြီးသော sandbox ကိုတည်းဖြတ်ရန် ဤနေရာကို နှိပ်ပါ။ သင်သည် မှတ်ပုံတင်ထားသော အသုံးပြုသူဖြစ်ပါက လော့ဂ်အင်ဝင်ရောက်ပြီး ကိုယ်ပိုင် sandbox ကို ဤနေရာတွင် ဖန်တီးနိုင်ပါသည်။ ကျေးဇူးပြု၍ Sandbox ထဲတွင် အနှောင့်အယှက်ဖြစ်စရာများ၊ အငြင်းပွားဖွယ်ရာများ နှင့် မူပိုင်ခွင့်ရှိသော အကြောင်းအရာများကို မရေးသားပါနှင့်။
|
/*
* nRF24L01 Transmitter Test Software * * Exercises the nRF24L01 Module. This code runs on the transmitter 'Master' device. * Use the nRF24L01_Receiver_Test software for the receiving 'Slave' device * * This uses the RF24.h library which can be installed from the Arduino IDE * Pins used for the SPI interface are determined by the Arduino being used. * The other two pins are arbitrary and can be changed if needed. Redfine them in the RF24 * statement. Default shown here is to use pins 7 & 8 */
- include <SPI.h>
- include <nRF24L01.h>
- include <RF24.h>
RF24 radio(7, 8); // CE, CSN // Define instance of RF24 object called 'radio' and define pins used const byte address[6] = "00001"; // Define address/pipe to use. unsigned long count = 0; // Use to count the number of messages sent char countStr[10]; // Create a char array to hold count as a string //=============================================================================== // Initialization //=============================================================================== void setup() {
radio.begin(); // Start instance of the radio object radio.openWritingPipe(address); // Setup pipe to write data to the address that was defined radio.setPALevel(RF24_PA_MAX); // Set the Power Amplified level to MAX in this case radio.stopListening(); // We are going to be the transmitter, so we will stop listening
} //=============================================================================== // Main //=============================================================================== void loop() {
count++; // Increment the count ltoa(count,countStr, 10); // Convert the count and put into the char array. char text[30] = "Sending Message: "; // Create our base message. strcat (text, countStr); // Append the count to the base message radio.write(&text, sizeof(text)); // Write the char array. delay(1000); // Delay for 1 second, then repeat
}