Index: /trunk/FACT++/src/HeadersFTM.h
===================================================================
--- /trunk/FACT++/src/HeadersFTM.h	(revision 10733)
+++ /trunk/FACT++/src/HeadersFTM.h	(revision 10734)
@@ -157,4 +157,5 @@
             kMaxSequence        = 0x1f,
             kMaxDAC             = 0xfff,
+            kMaxPixelIdx        = 1439,
             kMaskSettings       = 0xf,
             kMaskLEDs           = 0xf,
@@ -226,5 +227,6 @@
         void ToggleFTU(int i)  { fActiveFTU[i/10] ^= (1<<(i%10)); }
 
-        void Enable(GeneralSettings type, bool enable)  {
+        void Enable(GeneralSettings type, bool enable)
+        {
 	    if (enable)
 		fGeneralSettings |= uint16_t(type);
@@ -233,4 +235,18 @@
 
         bool IsEnabled(GeneralSettings type)  { return fGeneralSettings&uint16_t(type); }
+
+        void EnablePixel(int idx, bool enable)
+        {
+            const int board =  idx%40;
+            const int patch = (idx/40)/9;
+            const int pixel = (idx/40)%9;
+
+            uint16_t &pix = fBoard[board/10][board%10].fEnable[patch];
+
+            if (enable)
+                pix |= (1<<pixel);
+            else
+                pix &= ~(1<<pixel);
+        }
 
         uint8_t GetSequencePed() const   { return (fTriggerSequence>>10)&0x1f; }
