Skip to content

Instantly share code, notes, and snippets.

Avatar

James Wages JDW1

  • KIRAMEK, INC.
  • Nissin-shi, Japan
View GitHub Profile
@JDW1
JDW1 / PIC16F18854_CWG_Setup.asm
Created Aug 2, 2017
PIC16F18854 CWG Setup Assembly Code
View PIC16F18854_CWG_Setup.asm
; ---------[ CWG Setup ]------------------------------------------
; The sequence below follows "20.12 Configuring the CWG" in the PIC16(L)F18854 datasheet:
; http://ww1.microchip.com/downloads/en/DeviceDoc/40001826B.pdf
; Configuring the CWG, Step-1
banksel TRISB ; [Bank 0]
movlw b'11111111' ; RB0 & RB1 are CWG Outputs but must be Inputs for now.
movwf TRISB ; PORTB
; Configuring the CWG, Steps-2&3
banksel CWG1CON0 ; [Bank 12]
@JDW1
JDW1 / FW_CSSmenus_DropShadow.css
Last active Mar 10, 2017
CSS for Drop shadow behind Freeway Pro's CSS Menus
View FW_CSSmenus_DropShadow.css
<style type="text/css">
/*===[ Navigation Menu Styling ]===*/
#fwNav1 .fwNavItem {min-width:100px}
#fwNav1 .sub {
-webkit-box-shadow: #333333 3px 4px 12px;
-moz-box-shadow: #333333 3px 4px 12px;
box-shadow: #333333 3px 4px 12px;
}
#fwNav1 ul.sub,
#fwNav1 ul.sub li.fwLastChild,