summaryrefslogtreecommitdiffstatshomepage
Commit message (Expand)AuthorAge
* guess default branch from HEADJulius Plenz2011-06-20
* Merge branch 'stable'Lars Hjemli2011-06-18
|\
| * cgit.c: improve error message when git repo cannot be accessedLars Hjemli2011-06-18
* | Merge branch 'stable'Lars Hjemli2011-06-15
|\|
| * cgitrc.5.txt: document repo.module-linkLars Hjemli2011-06-15
* | Merge branch 'lh/clone-url'Lars Hjemli2011-06-13
|\ \
| * | cgit.c: add 'clone-url' setting with support for macro expansionLars Hjemli2011-06-13
| * | cgit.c: always setup cgit repo environment variablesLars Hjemli2011-06-13
|/ /
* | cgitrc.5.txt: reformat the "FILTER API" sectionLars Hjemli2011-06-13
* | Merge branch 'stable'Lars Hjemli2011-06-13
|\|
| * cgitrc.5.txt: describe macro expansion of cgitrc optionsLars Hjemli2011-06-13
* | Merge branch 'stable'Lars Hjemli2011-06-13
|\|
| * README: update some stale information/add some newLars Hjemli2011-06-13
* | Merge branch 'stable'Lars Hjemli2011-06-13
|\|
| * CGIT 0.9.0.1v0.9.0.1Lars Hjemli2011-06-13
* | Merge branch 'stable'Lars Hjemli2011-06-12
|\|
| * ui-plain.c: fix html and links generated by print_dir() and print_dir_entry()Lars Hjemli2011-06-12
* | Merge branch 'stable'Lars Hjemli2011-06-06
|\|
| * scan-tree.c: avoid memory leakJamie Couture2011-06-06
* | Merge branch 'stable'Lars Hjemli2011-06-02
|\|
| * ui-log.c: do not link from age columnLars Hjemli2011-06-02
| * ui-snapshot.c: remove debug cruftLars Hjemli2011-06-02
* | ui-stats.c: fix invalid htmlLars Hjemli2011-05-30
* | Merge branch 'stable'Lars Hjemli2011-05-30
|\|
| * Properly escape ampersands inside HTML attributesLukas Fleischer2011-05-30
* | ui_repolist: get modtime from packed-refs as fallbackFerry Huberts2011-05-30
* | Merge branch 'lh/panel'Lars Hjemli2011-05-23
|\ \
| * | ui-stats.c: create a control panel for stat optionsLars Hjemli2011-03-07
| * | ui-diff.c: create a control panel for diff optionsLars Hjemli2011-03-06
| * | html.c: add html_intoption()Lars Hjemli2011-03-06
* | | Merge branch 'fh/filter-api'Lars Hjemli2011-05-23
|\ \ \
| * | | shared.c: use execvp() to execute filter commandsLars Hjemli2011-03-26
| * | | filters: document environment variables in filter scriptsFerry Huberts2011-03-26
| * | | cgit_open_filter: hand down repo configuration to scriptFerry Huberts2011-03-26
| * | | cgit_open_filter: also take the repo as a parameterFerry Huberts2011-03-26
| * | | new_filter: determine extra_args from filter typeFerry Huberts2011-03-26
| |/ /
* | | Merge branch 'stable'Lars Hjemli2011-05-23
|\ \ \ | | |/ | |/|
| * | fix virtual-root if script-name is ""Mark Lodato2011-05-23
| * | ui-repolist.c: do not return random/stale data from read_agefileLars Hjemli2011-05-23
| * | Avoid null pointer dereference in cgit_print_diff().Lukas Fleischer2011-05-23
| * | Avoid null pointer dereference in reencode().Lukas Fleischer2011-05-23
| * | Fix memory leak in http_parse_querystring().Lukas Fleischer2011-05-23
| * | Remove unused variable from cgit_diff_tree().Lukas Fleischer2011-05-23
| * | shared.c: do not modify const memoryLars Hjemli2011-05-23
| * | tests: add tests for links with space in path and/or argsLars Hjemli2011-05-23
| * | tests/setup.sh: add support for known bugsLars Hjemli2011-05-23
| * | Fix escaping of paths with spacesJonathon Mah2011-05-23
* | | Merge branch 'dm/disable-clone'Lars Hjemli2011-05-14
|\ \ \
| * | | Return 404 on command not foundDan McGee2011-02-19
| * | | Allow disabling of HTTP clone URLsDan McGee2011-02-19
span class="w"> iAddr, int bFlip, int bInvert, int bWire, int iSDAPin, int iSCLPin, int iResetPin, int32_t iSpeed); // // Initialize an SPI version of the display // void oledSPIInit(int iType, int iDC, int iCS, int iReset, int bFlip, int bInvert, int32_t iSpeed); // // Provide or revoke a back buffer for your OLED graphics // This allows you to manage the RAM used by ss_oled on tiny // embedded platforms like the ATmega series // Pass NULL to revoke the buffer. Make sure you provide a buffer // large enough for your display (e.g. 128x64 needs 1K - 1024 bytes) // void oledSetBackBuffer(SSOLED *pOLED, uint8_t *pBuffer); // // Sets the brightness (0=off, 255=brightest) // void oledSetContrast(SSOLED *pOLED, unsigned char ucContrast); // // Load a 128x64 1-bpp Windows bitmap // Pass the pointer to the beginning of the BMP file // First pass version assumes a full screen bitmap // int oledLoadBMP(SSOLED *pOLED, uint8_t *pBMP, int bInvert, int bRender); // // Power up/down the display // useful for low power situations // void oledPower(SSOLED *pOLED, uint8_t bOn); // // Set the current cursor position // The column represents the pixel column (0-127) // The row represents the text row (0-7) // void oledSetCursor(SSOLED *pOLED, int x, int y); // // Turn text wrap on or off for the oldWriteString() function // void oledSetTextWrap(SSOLED *pOLED, int bWrap); // // Draw a string of normal (8x8), small (6x8) or large (16x32) characters // At the given col+row with the given scroll offset. The scroll offset allows you to // horizontally scroll text which does not fit on the width of the display. The offset // represents the pixels to skip when drawing the text. An offset of 0 starts at the beginning // of the text. // The system remembers where the last text was written (the cursor position) // To continue writing from the last position, set the x,y values to -1 // The text can optionally wrap around to the next line by calling oledSetTextWrap(true); // otherwise text which would go off the right edge will not be drawn and the cursor will // be left "off screen" until set to a new position explicitly // // Returns 0 for success, -1 for invalid parameter // int oledWriteString(SSOLED *pOLED, int iScrollX, int x, int y, char *szMsg, int iSize, int bInvert, int bRender); // // Fill the frame buffer with a byte pattern // e.g. all off (0x00) or all on (0xff) // void oledFill(SSOLED *pOLED, unsigned char ucData, int bRender); // // Set (or clear) an individual pixel // The local copy of the frame buffer is used to avoid // reading data from the display controller // (which isn't possible in most configurations) // This function needs the USE_BACKBUFFER macro to be defined // otherwise, new pixels will erase old pixels within the same byte // int oledSetPixel(SSOLED *pOLED, int x, int y, unsigned char ucColor, int bRender); // // Dump an entire custom buffer to the display // useful for custom animation effects // void oledDumpBuffer(SSOLED *pOLED, uint8_t *pBuffer); // // Render a window of pixels from a provided buffer or the library's internal buffer // to the display. The row values refer to byte rows, not pixel rows due to the memory // layout of OLEDs. Pass a src pointer of NULL to use the internal backing buffer // returns 0 for success, -1 for invalid parameter // int oledDrawGFX(SSOLED *pOLED, uint8_t *pSrc, int iSrcCol, int iSrcRow, int iDestCol, int iDestRow, int iWidth, int iHeight, int iSrcPitch); // // Draw a line between 2 points // void oledDrawLine(SSOLED *pOLED, int x1, int y1, int x2, int y2, int bRender); // // Play a frame of animation data // The animation data is assumed to be encoded for a full frame of the display // Given the pointer to the start of the compressed data, // it returns the pointer to the start of the next frame // Frame rate control is up to the calling program to manage // When it finishes the last frame, it will start again from the beginning // uint8_t * oledPlayAnimFrame(SSOLED *pOLED, uint8_t *pAnimation, uint8_t *pCurrent, int iLen); // // Scroll the internal buffer by 1 scanline (up/down) // width is in pixels, lines is group of 8 rows // Returns 0 for success, -1 for invalid parameter // int oledScrollBuffer(SSOLED *pOLED, int iStartCol, int iEndCol, int iStartRow, int iEndRow, int bUp); // // Draw a sprite of any size in any position // If it goes beyond the left/right or top/bottom edges // it's trimmed to show the valid parts // This function requires a back buffer to be defined // The priority color (0 or 1) determines which color is painted // when a 1 is encountered in the source image. // e.g. when 0, the input bitmap acts like a mask to clear // the destination where bits are set. // void oledDrawSprite(SSOLED *pOLED, uint8_t *pSprite, int cx, int cy, int iPitch, int x, int y, uint8_t iPriority); // // Draw a 16x16 tile in any of 4 rotated positions // Assumes input image is laid out like "normal" graphics with // the MSB on the left and 2 bytes per line // On AVR, the source image is assumed to be in FLASH memory // The function can draw the tile on byte boundaries, so the x value // can be from 0 to 112 and y can be from 0 to 6 // void oledDrawTile(SSOLED *pOLED, const uint8_t *pTile, int x, int y, int iRotation, int bInvert, int bRender); // // Draw an outline or filled ellipse // void oledEllipse(SSOLED *pOLED, int iCenterX, int iCenterY, int32_t iRadiusX, int32_t iRadiusY, uint8_t ucColor, uint8_t bFilled); // // Draw an outline or filled rectangle // void oledRectangle(SSOLED *pOLED, int x1, int y1, int x2, int y2, uint8_t ucColor, uint8_t bFilled); #if defined(_LINUX_) && defined(__cplusplus) } #endif // _LINUX_ #ifdef __cplusplus } #endif #endif // __SS_OLED_H__