Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include <iostream>
00009 #include <unistd.h>
00010 #include "WacomIntuos4LED.h"
00011
00012 using namespace std;
00013
00014 void checkWacomIntuos4LED() {
00015 uint16_t vendor_id = 0x056a;
00016 uint16_t product_id = 0x00b9;
00017 WacomIntuos4LED intuos4;
00018 unsigned char icon[1024];
00019 bool right_handed=true;
00020
00021
00022 if (!intuos4.autoDetectTablet()) {
00023 cerr << "ERROR: No Intuos 4 tablet found." << endl;
00024 return;
00025 }
00026
00027 intuos4.clearAllButtons();
00028 intuos4.displayPalette(right_handed);
00029 sleep(2);
00030
00031 intuos4.clearAllButtons();
00032 for (int b=0; b<8; b++) {
00033
00034 if (b%2==0) {
00035 intuos4.setLibraryIcon(b%8, "Tux", right_handed);
00036 } else {
00037 intuos4.setLibraryIcon(b%8, "WacomLogo", right_handed);
00038 }
00039 sleep(1);
00040
00041 }
00042
00043 intuos4.setLibraryIcon(0, "ButtonOne", right_handed);
00044 intuos4.setLibraryIcon(1, "ButtonTwo", right_handed);
00045 intuos4.setLibraryIcon(2, "ButtonThree", right_handed);
00046 intuos4.setLibraryIcon(3, "ButtonFour", right_handed);
00047 intuos4.setLibraryIcon(4, "ButtonFive", right_handed);
00048 intuos4.setLibraryIcon(5, "ButtonSix", right_handed);
00049 intuos4.setLibraryIcon(6, "ButtonSeven", right_handed);
00050 intuos4.setLibraryIcon(7, "ButtonEight", right_handed);
00051
00052 }
00053
00054 int main() {
00055 checkWacomIntuos4LED();
00056 return 0;
00057 }