Saturday, July 31, 2021

law breaker

As an unclean woman she should have stayed away from people.
Her faith resulted in disobedience to the rules and norms of Jewish society.


Her faith may have resulted in disobedience, but more importantly her faith led her to Jesus.
Faith leads people to Jesus.

Monday, July 26, 2021

temperature (DHT11) with LCD (via i2c)

# Drive 16x2 LCD with i2c LCD
import smbus
import time

# get drives for dht11
import dht11
import RPi.GPIO as GPIO

# define device parameters
I2C_ADDR = 0x27 #address for GPIO pin to LCD
LCD_WIDTH = 16 #Max characters per line

# define GPIO to LCD mapping
Temp_sensor = 14

# Define some device constants
LCD_CHR = 1 # Mode - Sending data
LCD_CMD = 0 # Mode - Sending command

LCD_LINE_1 = 0x80 # LCD RAM address for the 1st line
LCD_LINE_2 = 0xC0 # LCD RAM address for the 2nd line
LCD_LINE_3 = 0x94 # LCD RAM address for the 3rd line
LCD_LINE_4 = 0xD4 # LCD RAM address for the 4th line

LCD_BACKLIGHT  = 0x08  # On
#LCD_BACKLIGHT = 0x00  # Off

ENABLE = 0b00000100 # Enable bit

# Timing constants
E_PULSE = 0.0005
E_DELAY = 0.0005

#Open I2C interface
#bus = smbus.SMBus(0)  # Rev 1 Pi uses 0
bus = smbus.SMBus(1) # Rev 2 Pi uses 1

def main():
  # Main program block
  GPIO.setwarnings(False)
  GPIO.setmode(GPIO.BCM)       # Use BCM GPIO numbers
  instance = dht11.DHT11(pin = Temp_sensor)


  # Initialise display
  lcd_init()

  while True:
        #get DHT11 sensor value
        result = instance.read()
    # Send some test

        if result.is_valid():
                lcd_string("temp:"+str(result.temperature)+" C",LCD_LINE_1)
                lcd_string("humid:"+str(result.humidity)+"%",LCD_LINE_2)
                time.sleep(3) # 3 second delay
                lcd_string("wohooo ",LCD_LINE_1)
                lcd_string("now to get it online",LCD_LINE_2)
                time.sleep(3)




def lcd_init():
  # Initialise display
  lcd_byte(0x33,LCD_CMD) # 110011 Initialise
  lcd_byte(0x32,LCD_CMD) # 110010 Initialise
  lcd_byte(0x06,LCD_CMD) # 000110 Cursor move direction
  lcd_byte(0x0C,LCD_CMD) # 001100 Display On,Cursor Off, Blink Off 
  lcd_byte(0x28,LCD_CMD) # 101000 Data length, number of lines, font size
  lcd_byte(0x01,LCD_CMD) # 000001 Clear display
  time.sleep(E_DELAY)

def lcd_byte(bits, mode):
  # Send byte to data pins
  # bits = data
  # mode = True  for character
  #        False for command

  bits_high = mode | (bits & 0xF0) | LCD_BACKLIGHT
  bits_low = mode | ((bits<<4) & 0xF0) | LCD_BACKLIGHT

  # High bits
  bus.write_byte(I2C_ADDR, bits_high)
  lcd_toggle_enable(bits_high)

  # Low bits
  bus.write_byte(I2C_ADDR, bits_low)
  lcd_toggle_enable(bits_low)

  # Toggle 'Enable' pin
 # lcd_toggle_enable()

def lcd_toggle_enable(bits):
  # Toggle enable
  time.sleep(E_DELAY)
  bus.write_byte(I2C_ADDR, (bits | ENABLE))
  time.sleep(E_PULSE)
  bus.write_byte(I2C_ADDR,(bits & ~ENABLE))

def lcd_string(message,line):
  # Send string to display

  message = message.ljust(LCD_WIDTH," ")

  lcd_byte(line, LCD_CMD)

  for i in range(LCD_WIDTH):
    lcd_byte(ord(message[i]),LCD_CHR)

if __name__ == '__main__':
  try:
    main()
  except KeyboardInterrupt:
    pass
  finally:
    lcd_byte(0x01, LCD_CMD)
    lcd_string("Goodbye!",LCD_LINE_1)
    GPIO.cleanup()


did trees die before the fall of man?

 i wonder if trees ever died before the fall of man.

was death caused by 'sin'. adam and eve's disobedience to God's command not to eat the fruit from the Tree of Knowledge?


heaven, what if it really is like a place with no suffering,

where everyone just accepts their lot in life,

i dont want to have 'responsibilities' after i die, (yeah i'm kinda lazy, and the word kinda makes me think of 'work')


however, if it was do something i'd love to do for eternity i wouldn't mind...

what if heaven is like that, being able to do what we were intended to do from the start


what did God intent for me to do? what was His plan?


hmm...


in nature, everything plays its part,

every organism has its role,

no one is bad nor good,

things grow, reproduce seeds, die

bacteria decomposes the dead into nutrients

for the next generation to use,

it's all a cycle really,

a circle of life,

death and rebirth,

and endless cycle


(i guess that's why the Buddhist keeps trying to escape it)


hmmm..

heaven


where everything is in perfect harmony with each other

no more suffering, no more pain,

no more wars, only peace....


will there still be freedom?

will there still be individuality?

how could a place be conflict free if everyone was still able to keep their own mind,


transformation,

the process of sanctification here on earth 


that's why its so important,

this Christianity thing,

it's preparing each of us for eternity in a way no other process would


heaven isn't a goal, it isn't a destination

it's a process, it's a place where we come to at the end,

it's what's beyond the journey,.. after we've walked it


and it's in this journey,

that we face the struggles, obstacles and challenges in life


that would give us the opportunity to make choices,

that would mould our character


yes...


this is why we're still on earth,

we're not ready for heaven yet


keep on living




there will be joy

Saturday, July 24, 2021

purposely intention (刻意 Kèyì) vs special intention (特意 Tèyì)

 刻意 -Kèyì

so apparently, there's this saying in chinese called Ke(4) Yi(4) which means "deliberately" when translated into english. But see in english the word deliberately can be used for both good and bad actions/intentions.

Ke yi is doing something on purpose KNOWING that it is bad.

like, i know it its wrong to do this at my work place,
but i still choose to do it.


mind blowing eh,

if you have a word in language that actually describes this malice (恶意, Èyì)

... hmmm... well maybe the english language also has it haha.


but anyways..

the oppposite of Keyi is Tèyì (特意)

Which is like.. doing something good, (but translates to "specially" on google translate)

i think it's like.. benovelent? (仁慈 Réncí)



anyways... i just asked my GF whom speaks chinese.

so yeah the 意 Yi means intention

刻 Ke is purposely

特 Te is specially 


so the examples she gaves was

use keyi for not throwing out the rubbish (even though you know you should do it)

and teyi for preparing a present for someone (something good you'd wanna do)


tadaaa! some chinese lessons for today,

feel free to correct me in the comments or give your opinions about it


owhhh and there's another: 故意 Gùyì

its used when you're accusing someone of doing something bad.. lol

Monday, July 12, 2021

male vs man

"A male seeks to be served; a Man seeks to be of service." - Dondré Whitfield

Tuesday, July 06, 2021

loss of contentment

You dont need to know everything

Sunday, July 04, 2021

universal theme: wisdom

Elim church: a little bit of wisdom
A book on wisdom by tim keller
Book of proverbs chapter 1

Thursday, July 01, 2021

wellbeing

Wellbeing 10/10
Omly possible with Christ