(mysqlt): select p1.cID, pt.ctHandle from Pages p1 left join Pages p2 on (p1.cPointerID = p2.cID) left join PagePaths on (PagePaths.cID = p1.cID and PagePaths.ppIsCanonical = 1) left join PageSearchIndex psi on (psi.cID = if(p2.cID is null, p1.cID, p2.cID)) inner join CollectionVersions cv on (cv.cID = if(p2.cID is null, p1.cID, p2.cID) and cvID = (select cvID from CollectionVersions where cvIsApproved = 1 and cID = cv.cID)) left join PageTypes pt on pt.ctID = cv.ctID inner join Collections c on (c.cID = if(p2.cID is null, p1.cID, p2.cID)) left join CollectionSearchIndexAttributes on (CollectionSearchIndexAttributes.cID = if (p2.cID is null, p1.cID, p2.cID)) where 1=1 and (ak_pebble_authorName LIKE '%mhungerford%') and (p1.cID!='128') and cvName != '' and pt.ctID = '10' and (ak_exclude_page_list = 0 OR ak_exclude_page_list is null) and PagePaths.cPath like '/apps/%' and PagePaths.ppIsCanonical = '1' and cvIsApproved = '1' and (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and ((select count(cID) from PagePermissionAssignments ppa1 inner join PermissionAccessList pa1 on ppa1.paID = pa1.paID where ppa1.cID = if(p2.cID is null, p1.cInheritPermissionsFromCID, p2.cInheritPermissionsFromCID) and pa1.accessType = 10 and pa1.pdID in (0)
and pa1.peID in (2) and (if(pa1.peID = 4 and p1.uID <>0, false, true)) and (ppa1.pkID = 1 and cv.cvIsApproved = 1)) > 0
or (p1.cPointerExternalLink !='' AND p1.cPointerExternalLink IS NOT NULL)) and ((select count(cID) from PagePermissionAssignments ppaExclude inner join PermissionAccessList paExclude on ppaExclude.paID = paExclude.paID where ppaExclude.cID = if(p2.cID is null, p1.cInheritPermissionsFromCID, p2.cInheritPermissionsFromCID) and accessType = -1 and pdID in (0)
and paExclude.peID in (2) and (if(paExclude.peID = 4 and p1.uID <>0, false, true)) and (ppaExclude.pkID = 1 and cv.cvIsApproved = 1)) = 0) and ak_pebble_flag = '0' and ak_pebble_subApp = '0' and p1.cIsActive = '1' order by ak_pebble_dateAdded desc limit 0,56
-
Description
Pebble smartwatch app generating mandelbrot set, floyd-steinberg dithered, sll fastmath.
### Framebuffer access
Direct framebuffer access is used for fast pixel manipulation. Refer to the code for framebuffer access through the update layer function.
### 4-bit Dithering
This app uses 4-bit to 1-bit Floyd-Steinberg dithering to allow the mandelbrot generator to create colors, and display the final image on the Pebble's black-and-white EPaper screen.
### SLL Fastmath
Original version used gcc's softfloat (provided by newlib), which generated a mandelbrot frame every 40 seconds. Using SLL fastmath (from picoGL/tinyGL), a mandelbrot frame is generated in less than 4 seconds, for a 10x speedup, which makes watching the mandelbrot much less boring ;)
created by - mhungerford
-
Description
!!!Requires Firmware 2.0 (note:flickers on newest BETA4, working on fix). !!!
developer.getpebble.com/2
Pebble smartwatch app using Pulse-Width-Modulation and Framebuffer tricks to render grayscale PNGs to Pebble E-Paper Black and White display.
Uses uPNG for native PNG support with 2-bit Grayscale. Example of images here: github.com/pebble-hacks/pebble-truegray-png/tree/master/resources
Useful in games for 1 extra color (gray), can avoid the uPNG code and just create and use a 2-bit framebuffer for rendering.
Notice: Constantly updating the screen, so it does consume more power than usual. ie. Not to be used for watchfaces.
created by - mhungerford