Author |
Message |
Topic: How to save the generated .hex file to a specific path? |
pictrance
Replies: 1
Views: 11218
|
Forum: General CCS C Discussion Posted: Sun May 23, 2021 7:45 pm Subject: How to save the generated .hex file to a specific path? |
Does anyone know how to save the .hex generated by CCS in a specific path, other than the path where the project is saved?
I tried using the " #export( ) " directive
#export( ... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Tue Apr 13, 2021 2:35 pm Subject: USB HID - How Implement to allow Volume Up/Down? |
I just tested using the new code I posted, everything works.
Use portb7 as the button.
void usb_keyboard_task(void) {
// static int8 tx_msg[7]={0,0,0,0,0,0,0} ... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Mon Apr 12, 2021 3:07 pm Subject: USB HID - How Implement to allow Volume Up/Down? |
Media key uses 7 bits;
0x09, 0xB5, /* Usage (Scan Next Track) */
0x09, 0xB6, /* Usage (Scan Previous Track) */
0x09, 0xB7, ... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Sun Apr 11, 2021 7:32 pm Subject: USB HID - How Implement to allow Volume Up/Down? |
tx_msg[0]=REPT_ID01; // keyboard normal
tx_msg[1]=0x28 ; // ENTER
usb_put_packet(2,tx_msg,sizeof(tx_msg),USB_DTS_TOGGLE);
delay_ms(10) ... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Sun Apr 11, 2021 11:33 am Subject: USB HID - How Implement to allow Volume Up/Down? |
thanks Bro, it works without problems, I was checking your code and it has several things that I did not take into account,
one more question, how do you do to send the enter key?
I tried to u ... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Mon Apr 05, 2021 7:06 pm Subject: USB HID - How Implement to allow Volume Up/Down? |
Post a link with CCS example complete.
Hi bro, aquí esta el link al code
https://www.mediafire.com/folder/yeaoteolraht4/CCS_Foro
es a partir de la línea 224
it's from code line 22 ... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2021 12:05 pm Subject: USB HID - How Implement to allow Volume Up/Down? |
Hello vtrx, thanks, before asking for help in the forum, I had already put what you wrote in "const char USB_CLASS_SPECIFIC_DESC
.....
const char USB_CLASS_SPECIFIC_DESC[] = {
... |
Topic: USB HID - How Implement to allow Volume Up/Down? |
pictrance
Replies: 15
Views: 47659
|
Forum: General CCS C Discussion Posted: Sun Mar 28, 2021 9:26 am Subject: USB HID - How Implement to allow Volume Up/Down? |
Hi, I am using CCS USB HID libraries with ex_usb_keyboard.c example. It works perfectly for sending characters ('a' to 'z').
But I need to be able to control multimedia options with the PIC with bu ... |
Topic: Error pointer function in a struct |
pictrance
Replies: 4
Views: 20360
|
Forum: General CCS C Discussion Posted: Sun Apr 19, 2020 6:15 pm Subject: Error pointer function in a struct |
In order to do initialization of a function pointer, CCS requires a known type and your struct declaration technically uses an "anonymous" function pointer type. Try starting out with a typ ... |
Topic: Error pointer function in a struct |
pictrance
Replies: 4
Views: 20360
|
Forum: General CCS C Discussion Posted: Sun Apr 19, 2020 5:43 pm Subject: Error pointer function in a struct |
Your code snippets are different in some places, compared to the entire
program.
Please re-post the entire program with the code snippets that don't work.
Give us the bad program as a whole. ... |
Topic: Error pointer function in a struct |
pictrance
Replies: 4
Views: 20360
|
Forum: General CCS C Discussion Posted: Sun Apr 19, 2020 2:55 pm Subject: Error pointer function in a struct |
Hello everyone.
I am making an FSM state machine, using structures and functions. I using CCS 5.093
I am declaring a pointer function in a struct:
struct state {
void (*funcionPt& ... |
Topic: Flexible LCD driver for 20x4 LCDs, 3 pin mode |
pictrance
Replies: 0
Views: 26856
|
Forum: Code Library Posted: Sat Dec 29, 2012 12:06 pm Subject: Flexible LCD driver for 20x4 LCDs, 3 pin mode |
Este driver es para usar con LCDs de 20x4, con sólo 3 pines.
esta librería la modifique a partir del "Flex_LCD420.c" mostrado aquí:
http://www.ccsinfo.com/forum/viewtopic.php?t=28268
... |
Topic: how to connect to mpu6050 gyro sensor-i2c? |
pictrance
Replies: 49
Views: 114712
|
Forum: General CCS C Discussion Posted: Sat Nov 03, 2012 1:57 pm Subject: how to connect to mpu6050 gyro sensor-i2c? |
Hello, you can try this code
#include <18f2550.h> //PIC utilizado
#device adc=10
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=48M ... |
Topic: Driver for SHT21 |
pictrance
Replies: 2
Views: 43324
|
Forum: Code Library Posted: Tue Jun 28, 2011 2:52 pm Subject: Driver for SHT21 |
hi!
I want to share with you the driver for the sht21 (temperature and humidity sensor)
and the code is:
////////////////////////////////////////////////////////////////////////////////
/// ... |
|