CY8CKIT-001 Cypress Semiconductor Corp, CY8CKIT-001 Datasheet - Page 99

KIT DEV FOR PSOC3/5

CY8CKIT-001

Manufacturer Part Number
CY8CKIT-001
Description
KIT DEV FOR PSOC3/5
Manufacturer
Cypress Semiconductor Corp
Series
PSoC® CapSenser
Type
MCUr
Datasheets

Specifications of CY8CKIT-001

Contents
Board, CD, CY8C29 & CY8C38 Modules, MiniProg3 Programmer/Debugger, Power Supply
Processor To Be Evaluated
CY8C29, CY8C38
Interface Type
RS-232, USB, JTAG
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PSoC 1, PSoC 3 and PSoC 5
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
428-2961

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CY8CKIT-001A
Manufacturer:
Cypress Semiconductor
Quantity:
135
3.2.5.6
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. **
Creating the main.c File
1. From the Workspace Explorer double click the main.c file.
2. Use this code to replace the contents of the main.c file. (A soft copy of the main.c file is embed-
main.c
#include <device.h>
/* LCD specific */
#define ROW_0
#define ROW_1
#define COLUMN_0
#define NUM_CHARACTERS 16 /* Number of characters on LCD */
/* For clearing a row of the LCD*/
#define CLEAR_ROW_STR
/* Button 1 only string for row 0 of the LCD */
#define BUTTON_1_STR
/* Button 2 only string for row 0 of the LCD */
#define BUTTON_2_STR
/* Button 1 and 2 string for row 0 of the LCD */
#define BUTTON_1_2_STR
/* Default string for button row of the LCD */
#define DEFAULT_ROW_0_STR "Touch Buttons
/* Default string for slider row of the LCD */
#define DEFAULT_ROW_1_STR "Touch The Slider"
/* LED specific */
#define LED_ON
#define LED_OFF 0 /* For setting LED pin low */
/* CapSense specific */
#define SLIDER_RESOLUTION 80
extern const uint8 CharLCD_customFonts[];
void UpdateButtonState(uint8 slot_1, uint8 slot_2);
void UpdateSliderPostion(uint8 value);
/*******************************************************************************
* Function Name: main
********************************************************************************
*
* Summary:
*
*
*
*
* Parameters:
*
*
* Return:
*
*
*******************************************************************************/
void main()
{
ded in this PDF under “Attachments.”)
The main function initializes CapSense and the LCD.
scans all CapSense slots (slider slots and buttons), gets the state of the
buttons and slider and updates the LCD with the current state.
void
void
1 /* For setting LED pin high */
0
1
0
/* LCD row 0
/* LCD row 1
/* LCD column 0
"
"Button1
"
"Button1
Button2"
Button2"
*/
*/
*/
"
"
"
Then it continuously
Sample Projects
95
[+] Feedback

Related parts for CY8CKIT-001